Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Block The Baidu Spider From My Site?


You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Internet Discussion

Block The Baidu Spider From My Site?
Reply
 
Thread Tools
Old 08-06-2009, 23:52   #1
Callumpy
Killed You
 
Join Date: Jul 2007
Location: Chavy Derbyshire
Age: 15
Services: Dell XPS 420..... Internet: Be* Pro 24Mbps Phone: HTC HD2... T-Mobile TV: 32" + Xbox 360 Elite
Posts: 1,480
Callumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant future
Send a message via MSN to Callumpy Send a message via Yahoo to Callumpy Send a message via Skype™ to Callumpy
Question Block The Baidu Spider From My Site?

Hello... does anyone know how i can block the Baidu spider from visiting my website? Ive tried a robots.txt but that hasnt seemed to have worked.
__________________
Gamertag - Callumpy
Callumpy is offline   Reply With Quote
Old 09-06-2009, 00:26   #2
Acathla
cf.mega poster
 
Acathla's Avatar
 
Join Date: Jun 2003
Location: Wilmslow
Age: 31
Services: SkyHD, VM XXL BB
Posts: 1,096
Acathla has reached the bronze age
Acathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze age
Re: Block The Baidu Spider From My Site?

You can do this but it will still make server requests - just not index anything:

Code:
SetEnvIfNoCase User-Agent "^Baidu" bad_bot
<Directory />
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Directory>
You could probably also see about doing a mod_rewrite like:

Code:
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^baiduspider [NC]
RewriteRule .* - [F]
__________________
Acathla is offline   Reply With Quote
Old 09-06-2009, 02:55   #3
Paul M
Busy Admin
 
Paul M's Avatar
 
Join Date: Oct 2003
Location: Nottingham
Age: 47
Services: VM Phone : Sky+ Multiroom : VM Cable (20 Mbps)
Posts: 16,696
Paul M has a pair of shiny starsPaul M has a pair of shiny starsPaul M has a pair of shiny stars
Paul M has a pair of shiny starsPaul M has a pair of shiny starsPaul M has a pair of shiny starsPaul M has a pair of shiny starsPaul M has a pair of shiny starsPaul M has a pair of shiny starsPaul M has a pair of shiny stars
Re: Block The Baidu Spider From My Site?

Why do you want to block it ?
__________________
DigiGuide : Twitter : Facebook : CF Twitter : CF Facebook
I want your loving and I want your revenge. You and me could write a bad romance.
Paul M is offline   Reply With Quote
Old 09-06-2009, 18:23   #4
Callumpy
Killed You
 
Join Date: Jul 2007
Location: Chavy Derbyshire
Age: 15
Services: Dell XPS 420..... Internet: Be* Pro 24Mbps Phone: HTC HD2... T-Mobile TV: 32" + Xbox 360 Elite
Posts: 1,480
Callumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant future
Send a message via MSN to Callumpy Send a message via Yahoo to Callumpy Send a message via Skype™ to Callumpy
Re: Block The Baidu Spider From My Site?

I want to block it because my site is on my home server and it visits way to often. Eating my bandwidth.

Acathla, where do I put those?
__________________
Gamertag - Callumpy
Callumpy is offline   Reply With Quote
Old 09-06-2009, 20:03   #5
DaiNasty
Old dog, New tricks
 
DaiNasty's Avatar
 
Join Date: Dec 2006
Location: Lincoln UK
Services: 20Mb on occasions
Posts: 2,327
DaiNasty has a bronzed appealDaiNasty has a bronzed appeal
DaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appeal
Send a message via MSN to DaiNasty
Re: Block The Baidu Spider From My Site?

Quote:
Originally Posted by Callumpy View Post
I want to block it because my site is on my home server and it visits way to often. Eating my bandwidth.

Acathla, where do I put those?
Apparently it also ignores the robots.txt file so you may find it indexing bits you would rather keep private.

I'm not sure why anyone would want to be on a Chinese search engine anyway?
__________________
-= David =-

There are no normal people--only people you don't know very much about.
DaiNasty is offline   Reply With Quote
Old 09-06-2009, 23:27   #6
Callumpy
Killed You
 
Join Date: Jul 2007
Location: Chavy Derbyshire
Age: 15
Services: Dell XPS 420..... Internet: Be* Pro 24Mbps Phone: HTC HD2... T-Mobile TV: 32" + Xbox 360 Elite
Posts: 1,480
Callumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant future
Send a message via MSN to Callumpy Send a message via Yahoo to Callumpy Send a message via Skype™ to Callumpy
Re: Block The Baidu Spider From My Site?

Ive realised it ignores the robots.txt...

User-agent: BaiDuSpider
Disallow: /

User-agent: Baidu
Disallow: /

User-agent: Baiduspider+(+http://www.baidu.com/search/spider.htm)
Disallow: /

User-agent: Baiduspider+(+http://www.baidu.com/search/spider_jp.html)
Disallow: /

The only annoying thing is that it visits like every 5 - 10 mins. Its eating my bandwidth.
I cant block it by IP either cause it has loads of IPs
__________________
Gamertag - Callumpy
Callumpy is offline   Reply With Quote
Old 09-06-2009, 23:45   #7
Acathla
cf.mega poster
 
Acathla's Avatar
 
Join Date: Jun 2003
Location: Wilmslow
Age: 31
Services: SkyHD, VM XXL BB
Posts: 1,096
Acathla has reached the bronze age
Acathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze age
Re: Block The Baidu Spider From My Site?

OK I guess I should really have asked how your hosting / server / etc as this is for Apache.

Into your httpd.conf

Let me know what you can configure and I'll see if I can help.
__________________
Acathla is offline   Reply With Quote
Old 10-06-2009, 20:02   #8
Callumpy
Killed You
 
Join Date: Jul 2007
Location: Chavy Derbyshire
Age: 15
Services: Dell XPS 420..... Internet: Be* Pro 24Mbps Phone: HTC HD2... T-Mobile TV: 32" + Xbox 360 Elite
Posts: 1,480
Callumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant futureCallumpy has a brilliant future
Send a message via MSN to Callumpy Send a message via Yahoo to Callumpy Send a message via Skype™ to Callumpy
Re: Block The Baidu Spider From My Site?

I use abyss
__________________
Gamertag - Callumpy
Callumpy is offline   Reply With Quote
Old 10-06-2009, 21:38   #9
DaiNasty
Old dog, New tricks
 
DaiNasty's Avatar
 
Join Date: Dec 2006
Location: Lincoln UK
Services: 20Mb on occasions
Posts: 2,327
DaiNasty has a bronzed appealDaiNasty has a bronzed appeal
DaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appealDaiNasty has a bronzed appeal
Send a message via MSN to DaiNasty
Re: Block The Baidu Spider From My Site?

Quote:
Originally Posted by Callumpy View Post

The only annoying thing is that it visits like every 5 - 10 mins. Its eating my bandwidth.
I cant block it by IP either cause it has loads of IPs
Block the whole 60.28.*.* range.
Unless you have some reason to want Chinese visitors that'll keep a lot of the spiders out.
__________________
-= David =-

There are no normal people--only people you don't know very much about.
DaiNasty is offline   Reply With Quote
Old 11-06-2009, 15:14   #10
AbyssUnderground
cf.mega poster
 
AbyssUnderground's Avatar
 
Join Date: Oct 2005
Location: Middlesbrough (TS6)
Age: 21
Services: 2.5Mbps (10Mbps burst) Virgin Media Broadband via SACM
Posts: 1,934
AbyssUnderground has reached the bronze age
AbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze ageAbyssUnderground has reached the bronze age
Send a message via MSN to AbyssUnderground
Re: Block The Baidu Spider From My Site?

I can't see how 1 spider can eat all your bandwidth, I used to host my site on half the bandwidth you have and I had google spider and loads of other spiders crawling my site all the time, and it being a forum it had tens of thousands of pages to crawl. It used barely anything, its just like a normal visitor.

The only reason it might use lots is if it has no request-delay like the other crawlers do. Google's default is 5 seconds/page so if its doing more than 1/second it might use more.

As said above the easiest way to block it if it is ignoring the robots file is to block the IP range.
__________________
2GB Test for 50Mbps customers (on 100Mbps conn.):
ftp://test:test@osba.co.uk/2gb-test-file.bin Use an FTP client for a reliable test.
Server Bandwidth:Here
AbyssUnderground is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Links
Google
 
Web www.cableforum.co.uk


All times are GMT +1. The time now is 23:38.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
Copyright © 2003 - 2010, Cable Forum.
(server1.cableforum.co.uk)