Welcome to WebmasterWorld Guest from 54.226.25.231

Forum Moderators: goodroi

Message Too Old, No Replies

robots.txt syntax question

Block access to specific file

     

bcolflesh

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?

Romeo

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

Hot Threads This Week

Hot Threads This Month