Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2011
    Posts
    226
    Plugin Contributions
    0

    Default Block ##########spider

    Hi

    Every day, about 40 BAI.DU spiders come on to, and index my site. I know that BAI.DU search is a legitimate Chinese search engine, but my website is not intended for China.

    I have entered this into my robots.txt file:

    #bai.duspider
    User-agent: bai.duspider
    Disallow: /


    ...but it doesn't seem to obey the file.

    Is there any other way to block this spider without using htaccess and blocking each IP address? That would take a long time.


    Thanks
    S
    Last edited by SethF; 23 Dec 2011 at 01:11 PM. Reason: For some reason Zen Cart doesn't like the word Bai.du (without the dot).. so just ignore the dots.

  2. #2
    Join Date
    Oct 2007
    Posts
    143
    Plugin Contributions
    0

    Default Re: Block ##########spider

    i had them going crazy on two different sites - added this to my robots: (Replace xxx with name of the bot which we dare not speak it's name)

    Code:
    #xxxspider
    User-agent: xxxspider
    Disallow: /
    
    #xxx
    User-agent: xxx
    Disallow: /
    
    #xxxAgain
    User-agent: xxxspider/2.0
    Disallow: /
    
    #majestic started showing up 10min after i blocked xxx
    User-agent: MJ12bot
    Disallow: /
    (last one added because as soon as the xxx stopped showing up, another very similar bot took it's place)

    also added this to .htaccess:

    Code:
    RewriteCond %{HTTP_USER_AGENT} xxxspider
    RewriteRule ^.*$ http://127.0.0.1 [R,L]
    
    RewriteCond %{HTTP_USER_AGENT} xxx
    RewriteRule ^.*$ http://127.0.0.1 [R,L] 
    
    RewriteCond %{HTTP_USER_AGENT} xxx/2.0
    RewriteRule ^.*$ http://127.0.0.1 [R,L]
    can't remember for sure which one did the trick, but haven't seen "you know who" around for quite awhile..

 

 

Similar Threads

  1. My IP - as spider?
    By ekele in forum General Questions
    Replies: 5
    Last Post: 24 Aug 2010, 11:56 PM
  2. Block Spider Bot - RPT-HTTPClient/0.3-3
    By miles in forum General Questions
    Replies: 2
    Last Post: 8 Jan 2009, 04:52 AM
  3. Replies: 5
    Last Post: 15 Jan 2008, 07:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg