What should my .htaccess file look like?

MySeoEmail

Regular Member
Joined
Mar 15, 2015
Messages
235
Reaction score
24
If i wanted to block crawlers on my PBNs what should my .htaccess file look like? I see so many threads saying diff things just wondering what works for you guys and what it should look like when I edit my .htaccess file?
 
RewriteEngine On


RewriteCond %{HTTP_USER_AGENT} (googlebot|bingbot|Baiduspider) [NC]
RewriteRule .* - [R=403,L]

This is what most of us do.You might need to add more crawlers ,if you want.
 
This is a good thread to follow - http://www.blackhatworld.com/blackhat-seo/black-hat-seo/752005-list-approx-200-bots-block-pbn.html
 
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} (googlebot|bingbot|Baiduspider) [NC] RewriteRule .* - [R=403,L] This is what most of us do.You might need to add more crawlers ,if you want.
Isn't the purpose google to index your pbn network? If you block 'googlebot' how google will index it? Or i am missing something.
 
its right i think RewriteCond %{HTTP_USER_AGENT} (googlebot|bingbot|Baiduspider) [NC] RewriteRule .* - [R=403,L]
 
Back
Top