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

Wordpress: Code that blocks web proxies?

Discussion in 'Blogging' started by drogon, Mar 19, 2012.

  1. drogon

    drogon Elite Member Premium Member

    Joined:
    May 28, 2010
    Messages:
    2,108
    Likes Received:
    1,005
    Hi, i would like to block web proxies from accessing and potentially indexing my website. This is the code i have added to my Wordpress blog htacces file in red:

    Code:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    [COLOR=Red]#block proxies
    RewriteCond %{HTTP_USER_AGENT} ([B]proxyname1|proxyname2)[/B]
    RewriteRule .* - [F] [/COLOR]
    </IfModule>
    # END WordPress
    
    Is this correct?
     
  2. drogon

    drogon Elite Member Premium Member

    Joined:
    May 28, 2010
    Messages:
    2,108
    Likes Received:
    1,005
    Bump: Anyone?