Welcome to WebmasterWorld Guest from 54.144.243.34

Forum Moderators: goodroi

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
[robotstxt.org...]
for further details.

Regards,
R.

 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month