homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

Does robots.txt prevent all access?
...on page as well as directory.

10+ Year Member

Msg#: 453 posted 12:04 pm on Sep 30, 2004 (gmt 0)

Sorry if this has been asked 100 times before, but can't find the exact answer through search.

If I block a directory in robots.txt eg. /carimages/ I know that the bots will not then visit that directory.

May seem a stupid question but does it also mean that the bots also won't retrieve any image from that directory, even if a page that allows bots retrieves an image from the directory eg. page code has...img src=carimages/car1.jpg?

(I don't want them to get the images on some of the pages, but do want the pages indexed).

Thanks in anticipation.



WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 453 posted 5:02 am on Oct 3, 2004 (gmt 0)

robots.txt disallows using prefix-matching. Anything (directory, file, script, etc.) whose prefix matches the given pattern will be disallowed. Therefore, yes, all images in your /images/ directory will be disallowed, and will not be fetched by robots.txt-compliant robots.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved