Robots.txt to disallow everything and allow only specific parts of the site/pages. Is “allow” supported by crawlers like Ultraseek and FAST?

StackOverflow https://stackoverflow.com/questions/393539

  •  23-08-2019
  •  | 
  •  

Question

Just wanted to know if it is possible to disallow the whole site for crawlers and allow only specific webpages or sections? Is "allow" supported by crawlers like FAST and Ultraseek?

Was it helpful?

Solution

There is an Allow Directive however there's no guarantee that a particular bot will support it (much like there's no guarantee a bot will even check your robots.txt to begin with). You could probably tell by examining your weblogs whether or not specific bots were indexing only the parts of your website that you allow.

The format for allowing just a particular page or section of your website might look like:

Allow: /public/section1/
Disallow: /

This (should) prevent bots from crawling or indexing anything except for content under /public/section1

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top