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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: block all baiduspider requests Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
PamDean
Newbie
Newbie


Joined: 21 September 2011
Online Status: Offline
Posts: 1
Posted: 22 September 2011 at 7:35am | IP Logged Quote PamDean

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 View PamDean's Profile Search for other posts by PamDean
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 22 September 2011 at 8:04am | IP Logged Quote Anton

Hello,
please try changing it like this:

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

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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