| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
daddyo
Joined: 12 Sep 2007 Posts: 38
|
Posted: Thu Oct 25, 2007 6:11 pm Post subject: I need Robots.txt to block spiders from root directory |
|
|
Currently, my robots file is this:
User-agent: *
Disallow: /phpBB/posting.php
Disallow: /phpBB/groupcp.php
Disallow: /phpBB/search.php
Disallow: /phpBB/login.php
Disallow: /phpBB/privmsg.php
Disallow: /phpBB/post
Disallow: /phpBB/member
Disallow: /phpBB/profile.php
Disallow: /phpBB/memberlist.php
Disallow: /phpBB/faq.php
I have this in my root web folder. I would also like to block spiders from crawling in my root folder as well, but since I'm unfamiliar with the syntax, I don't want to create somewthing that will block my forum URLs as well.
How do I use Disallow to disallow access to my root folder, but still keep the same rules as above? |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13994
|
Posted: Sun Oct 28, 2007 12:42 pm Post subject: Re: I need Robots.txt to block spiders from root directory |
|
|
The problem is, if you really disallow the root folder, you'll disallow everything.
A disallow on a folder will be active on all pages in the folder, it's the same for the root folder.
If you want to disallow a type of page in the root folder, you can use :
| Code: | User-agent: *
Disallow: /page_disallowed.html
Disallow: /phpBB/posting.php
... |
Disallowed page won't show up in SERPs, so take care. We only want to disallow the "bad" pages.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
daddyo
Joined: 12 Sep 2007 Posts: 38
|
Posted: Sun Oct 28, 2007 2:10 pm Post subject: Re: I need Robots.txt to block spiders from root directory |
|
|
Thanks.
The only problem is that in order to get individual pages to not be indexed, I have to list them one-by-one in the robots.txt, thus exposing my files to anyone looking at my robots.txt file.
I guess I need to put them in their own subdirectory. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 13994
|
|
| Back to top |
|
 |
daddyo
Joined: 12 Sep 2007 Posts: 38
|
Posted: Sun Oct 28, 2007 2:37 pm Post subject: Re: I need Robots.txt to block spiders from root directory |
|
|
Thanks.
I think for now I'll try the meta tag approach, since I have lots of scripts that depends on other scripts and it might take too long to track down dependencies if I moved them all to a subfolder. |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |