Welcome to WebmasterWorld Guest from 54.160.131.144

Forum Moderators: goodroi

Message Too Old, No Replies

disallow: /*

robot.txt newbie, please help

     

emm0uk

11:11 pm on Mar 29, 2004 (gmt 0)

10+ Year Member



i'm new to robots and i would like a simple (if possible) way to prevent robots from indexing all of my site content apart from the contents of the root folder. I have sub directories that i do not want indexing, but would rather not put the name of the folders on a robots.txt, so i was wondering if i can use a wildcard.
eg:
user-agent: *
disallow:/ *
Would this allow my root folder to be indexed, but prevent sub-folder from being indexed?
Also, how can i hide the robots.txt from all apart from robots? Script examples would be much appreciated as i'm pretty new to web building. Thanks all.

moltar

11:15 pm on Mar 29, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WW emm0uk!

That would not do the trick. You need to specify each folder individually to avoid spidering.

Why would you want to hide them from robots anyways? If one can find it through your site then there is no need to hide it. If nobody can find it, then spiders won't find it either.

check out Robots.txt Tutorial [searchengineworld.com].

 

Featured Threads

Hot Threads This Week

Hot Threads This Month