Forum Moderators: phranque

Message Too Old, No Replies

How to ban Java clients in .htaccess without crippling Java games?

         

MichaelBluejay

1:51 pm on Nov 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I was tired of generic Java-based bots scraping my sites so I added this to my .htaccess file:

SetEnvIfNoCase User-Agent Java bad_bot

But as soon as I did that, the Java-based games on my site would no longer load. Is there a way to ban Java bots without crippling my Java games?

I don't think robots.txt is an option -- generic Java bots likely ignore it.

MichaelBluejay

4:02 pm on Nov 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No ideas?