tor.php 554 B

123456789101112131415161718
  1. <?php
  2. function tor_result($response)
  3. {
  4. $formatted_response = "It seems like you are not using Tor";
  5. if (strpos($response, $_SERVER["REMOTE_ADDR"]) !== false)
  6. {
  7. $formatted_response = "It seems like you are using Tor";
  8. }
  9. $source = "https://check.torproject.org";
  10. return array(
  11. "special_response" => array(
  12. "response" => $formatted_response,
  13. "source" => $source
  14. )
  15. );
  16. }
  17. ?>