Forum Moderators: open
Question: Is there any way to ban this without banning all Mozilla UAs? I've had this one visit my site before with a different IP. Waiting until someone hits using this and banning the IP isn't very effective, IMO.
Here's a collection of Mozilla-spoof blockers that I've used. Note that all anchoring variations are intentional and important.
# BLOCK faked Mozilla UAs.
RewriteCond %{HTTP_USER_AGENT} ^Mozilla$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/[1-9]\.[0-9]+$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4\.0\+?\(compatible\; [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/3\.0\ \(compatible\)$ [OR]
RewriteCond %{HTTP_USER_AGENT} Mozilla/3.Mozilla/2\.
RewriteRule !^403.*\.html$ - [F]
I have that one banned, too. I read your other post(s) about it and banned using part of the UA:
RewriteCond %{HTTP_USER_AGENT} ^Mozilla/5\.0\ \(Version Just in case the numbers in the string are changed any (example - Version: 123) it'll be covered. I know I'm not banning any real browsers because I've never seen a Mozilla version that uses "version" in its name.
He's been consistent on using 2 to 4 digits. I just went thru my logs and noticed he used Version 1 once today. Since he decided to break this pattern by using one digit, I think I'll switch over to a partial like you're doing.