mirror of
https://github.com/Ahwxorg/librey/
synced 2024-12-06 19:16:48 +01:00
21 lines
664 B
PHP
21 lines
664 B
PHP
<?php
|
|
|
|
class TorRequest extends EngineRequest {
|
|
public function get_request_url() {
|
|
return "https://check.torproject.org/torbulkexitlist";
|
|
}
|
|
|
|
public function parse_results($response) {
|
|
$formatted_response = strpos($response, $_SERVER["REMOTE_ADDR"]) ? "It seems like you are using Tor" : "It seems like you are not using Tor";
|
|
$source = "https://check.torproject.org";
|
|
|
|
return array(
|
|
"special_response" => array(
|
|
"response" => $formatted_response,
|
|
"source" => $source
|
|
)
|
|
);
|
|
}
|
|
}
|
|
?>
|