LibreY- privacy respecting meta search engine |
git clone git://git.acid.vegas/LibreY.git |
Log | Files | Refs | Archive | README | LICENSE |
tor.php (664B)
1 <?php 2 3 class TorRequest extends EngineRequest { 4 public function get_request_url() { 5 return "https://check.torproject.org/torbulkexitlist"; 6 } 7 8 public function parse_results($response) { 9 $formatted_response = strpos($response, $_SERVER["REMOTE_ADDR"]) ? "It seems like you are using Tor" : "It seems like you are not using Tor"; 10 $source = "https://check.torproject.org"; 11 12 return array( 13 "special_response" => array( 14 "response" => $formatted_response, 15 "source" => $source 16 ) 17 ); 18 } 19 } 20 ?>