Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



SEO Class in Chicago, IL

Learn How To Optimize Your Website on July 26, 2013


Looking for personalized in-depth SEO training among your peers?



High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!



 


Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo

Disallow Some Bots


  • Please log in to reply
3 replies to this topic

#1 dimmond

dimmond

    HR 1

  • Members
  • Pip
  • 2 posts

Posted 31 January 2008 - 05:18 AM

I need a help about the robots.txt .. namely i want to say allow all bots except these three bots but i have no idea how. i.e.
User-Agent: *
Disallow:
this will allow all the robots
now if i add this:
User-agent: Zao
Disallow: /
will that prevent the Zao bot to crawl my website or when it sees the first lines will start to crawl ignoring the lines below?
Thanks


#2 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 31 January 2008 - 06:56 AM

Welcome dimmond ! hi.gif

CODE
User-agent: Zao
Disallow: /


The above will disallow bot Zao from spidering anything on your site, assuming the bot in question actually follows robots.txt standards. Some bad bots (read: Scraper Bots) don't follow robots.txt instructions.

#3 dimmond

dimmond

    HR 1

  • Members
  • Pip
  • 2 posts

Posted 31 January 2008 - 04:26 PM

Thanks Randy,

You are right about that but, please explain to me what would happen if i have allowed all bots in the same robots.txt and then disallowed some bots particulary.
I was wondering how they consider this situation. maybe they come to the first block where i am allowing all of them user-agent: * and when they see Disallow: nothing they start crawling ???

Thanks ones again,
Elizabeth Dimmond

#4 Randy

Randy

    Convert Me!

  • Moderator
  • 17,540 posts

Posted 01 February 2008 - 01:45 AM

ahhh, I get what you're asking now Elizabeth.

Per the specs the more specific stuff should come first if memory serves, though in reality I don't think it really matters since even good bots extend well beyond the original specs these days and attempt to account for common errors. They do read the file from the top down though, so it's always good practice follow the specs as closely as possible.

So to do your example per the specs would be:

CODE
User-agent: Zao
Disallow: /
User-agent: *
Disallow:





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users