Answer the question
In order to leave comments, you need to log in
How to prevent access to the site through the TOR browser?
For an error to appear:
TOR is prohibited services for the site, sorry.
TOR is a prohibited service for this site.
Answer the question
In order to leave comments, you need to log in
Well, for example, in PHP
function IsTorExitPoint(){
if (gethostbyname(ReverseIPOctets($_SERVER['REMOTE_ADDR']).".".$_SERVER['SERVER_PORT'].".".ReverseIPOctets($_SERVER['SERVER_ADDR']).".ip-port.exitlist.torproject.org")=="127.0.0.2") {
return true;
} else {
return false;
}
}
function ReverseIPOctets($inputip){
$ipoc = explode(".",$inputip);
return $ipoc[3].".".$ipoc[2].".".$ipoc[1].".".$ipoc[0];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question