Welcome to WebmasterWorld Guest from 54.167.110.211

Forum Moderators: goodroi

Message Too Old, No Replies

disallow: /*

robot.txt newbie, please help

     

emm0uk

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

Inactive Member
Account Expired

 
 


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.
11:15 pm on Mar 29, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 18, 2003
posts:1925
votes: 0


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].

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members