librex/engines/special/tor.php

19 lines
554 B
PHP
Raw Permalink Normal View History

2023-02-03 21:01:28 +00:00
<?php
function tor_result($response)
{
$formatted_response = "It seems like you are not using Tor";
if (strpos($response, $_SERVER["REMOTE_ADDR"]) !== false)
{
$formatted_response = "It seems like you are using Tor";
}
$source = "https://check.torproject.org";
return array(
"special_response" => array(
"response" => $formatted_response,
"source" => $source
)
);
}
?>