Wordpress: Code that blocks web proxies?

drogon

Elite Member
Joined
May 28, 2010
Messages
2,812
Reaction score
1,400
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?
 
Bump: Anyone?
 
Back
Top