1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to block spammers using Google Chrome 27.0?

Discussion in 'Blogging' started by edgematch, Jul 28, 2014.

  1. edgematch

    edgematch Elite Member

    Joined:
    May 24, 2010
    Messages:
    2,538
    Likes Received:
    1,949
    Occupation:
    You can never guess!
    Location:
    :noitacoL
    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