Possible Duplicate:
Block TOR Servers
I would like to know if it is possible to see if a call to my PHP page is done by a TOR client (meaning the call comes in over the TOR project network). Today I call a bunch of IP adresses gotten from https://check.torproject.org/cgi-bin/TorBulkExitList.py, but it would be more fun if I can spoof the data send back to the thieves leaching my API.
I can't think of anyway to find out, is it possible? How?
The Class might be just want you need .. it check for ip-port.exitlist.torproject.org
in DNS information and determine if an user is accessing a site using the Tor network.
Example
$tor = Tor::getInstance();
// check current users ip and
// return true or false
var_dump($tor->isTorActive());
// check ip of another user
var_dump($tor->setTarget('1.2.3.4')->isTorActive());