How to block spammers using Google Chrome 27.0?

edgematch

Elite Member
Joined
May 24, 2010
Messages
2,545
Reaction score
1,971
One of my sites is getting many spam visits. First I managed to stop some by using a plugin which helps to block visits from certain countries (china, ukraine). Later I also blocked the ones using IE 6 with this code:
Code:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "MSIE [6-7]" [NC]
RewriteRule ^(.*)$ http://abcd12345.com/ie [R=301,L]

It worked smooth. But now still there are some left and they use Google Chrome 27.0 as browser type and version. When I use this code to block Chrome 27 users:
Code:
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} "Chrome 27" [NC]
RewriteRule ^(.*)$ http://abcd12345.com/ie [R=301,L]

It does nothing. Can anyone please show me how to block them using .htaccess?

Thanks
 
Back
Top