This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: block all baiduspider requests
Author
Message |
PamDean
Newbie


Joined: 21 September 2011
Posts: 1
Posted: 22 September 2011 at 7:35am

I need to block all baiduspider requests coming into my site. 

How do I redirect based on useragent?  I have this rule in the httpd.ini file but it doesn't seem to work.

RewriteCond  User-Agent: baidu
RewriteRule  (.*)   http://www.baidu.com/ [RP]

Thank you.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 22 September 2011 at 8:04am

Hello,
please try changing it like this:

RewriteCond User-Agent: .*baidu.*
RewriteRule .* http\://www.baidu.com/ [RP]

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum