On 08.04.2013 01:52, Barack Obama wrote:
My website, Bypass-Censorship.org, is getting LOTS of spam traffic from Tor (specifically in the wp-cron.php script). [...] Basically what I want to do is add some PHP code in the beginning of index.php (I use WordPress as my CMS). What the code should do is detect if the client is using Tor, and if the client is, the script redirects to the mobile version of my site
I think this is a bad idea. What about botnets etc?
Secure your installation properly, and use static site generation/caching plugins to reduce load.