Welcome to WebmasterWorld Guest from

Forum Moderators: goodroi

Message Too Old, No Replies

robots.txt syntax question

Block access to specific file



8:09 pm on Aug 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

I want to Disallow a specific file in a subdirectory beneath root - different sites I've looked at suggest:

Disallow: myfile.html

Disallow: /myfile.html

Disallow: /subdirectory/myfile.html

Which one is correct to keep obedient spiders away from the file?


8:19 pm on Aug 2, 2003 (gmt 0)

10+ Year Member

... you should specify the path under document root including that subdirectory, so your 3rd Disallow: is the correct one.

You may look at
for further details.



Featured Threads

Hot Threads This Week

Hot Threads This Month