blocking the seo bots

W9go

Elite Member
Joined
May 16, 2011
Messages
5,841
Reaction score
1,308
someone can give me the code for ht access to block the seo bots crawling my page ...

thanks
 
someone can give me the code for ht access to block the seo bots crawling my page ...

thanks

<html>
<head>
<title>...</title>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
</head>
 
Here ya go buddy ;)

Code:
SetEnvIfNoCase User-Agent .*rogerbot.* bad_bot
SetEnvIfNoCase User-Agent .*exabot.* bad_bot
SetEnvIfNoCase User-Agent .*mj12bot.* bad_bot
SetEnvIfNoCase User-Agent .*dotbot.* bad_bot
SetEnvIfNoCase User-Agent .*gigabot.* bad_bot
SetEnvIfNoCase User-Agent .*ahrefsbot.* bad_bot
SetEnvIfNoCase User-Agent .*sitebot.* bad_bot
<Limit GET POST HEAD>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Limit>
 
Pretty sure there's a big list floating around for this on here.

Have a search on the forum for some of the bot names posted above.
 
SetEnvIfNoCase User-Agent .*rogerbot.* bad_bot SetEnvIfNoCase User-Agent .*exabot.* bad_bot SetEnvIfNoCase User-Agent .*mj12bot.* bad_bot SetEnvIfNoCase User-Agent .*dotbot.* bad_bot SetEnvIfNoCase User-Agent .*gigabot.* bad_bot SetEnvIfNoCase User-Agent .*ahrefsbot.* bad_bot SetEnvIfNoCase User-Agent .*sitebot.* bad_bot <Limit GET POST HEAD> Order Allow,Deny Allow from all Deny from env=bad_bot </Limit>

I know this post few months old though would like to know whats the difference with the quoted htaccess and the below?

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^USER_AGENT [NC,OR]
RewriteRule ^.* - [F,L]

I use wordpress and was given a list of agents to block wwith the above conditions. If 1 better over another?
 
Back
Top