edgematch
Elite Member
- May 24, 2010
- 2,545
- 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:
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:
It does nothing. Can anyone please show me how to block them using .htaccess?
Thanks
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