Forum Moderators: phranque
aa.bb.cc.dd - - [04/Jul/2007:10:23:46 -0400] "GET /path/to/a/page/ HTTP/1.1" 200 38413 "-" "Mozilla/4.0 (compatible;)"
now how do I reg exp it out in my .htaccess?
I've worked this one out:
SetEnvIfNoCase User-Agent "^Mozilla/4\.0\ \(compatible\;\)$" bad_bot
Please confirm that I will not be blocking someone else with the above and that this is the correct syntax to block just Mozilla/4.0 (compatible;) user agent.