![]() | | ||||||||
| | #1 |
| Senior Warrior Member War Room Member Join Date: Oct 2006 Location: San Francisco, CA
Posts: 3,386
Blog Entries: 11 Thanks: 723
Thanked 778 Times in 494 Posts
|
Hello there, I want to keep Google and any other search bots out of one of my directories. My understanding is I can do this by creating a robots.txt file. So I uploaded it to public_html...is that the correct spot to have it in the root? And here is the code...does it look okay? Code: User-Agent: * Disallow: /folder_name ![]() Thanks! |
| | |
| | |
| | #2 |
| Gleb War Room Member Join Date: Dec 2008 Location: Ottawa, Canada
Posts: 845
Thanks: 10
Thanked 104 Times in 85 Posts
|
To be sure - signup for Google webmasters tools and it has robots.txt checking facility there.
|
| | |
| | |
| | #3 | |
| Senior Warrior Member War Room Member Join Date: Oct 2006 Location: San Francisco, CA
Posts: 3,386
Blog Entries: 11 Thanks: 723
Thanked 778 Times in 494 Posts
|
Thanks for the tip. I'm trying to verify the site but they're unable to verify due to this error: Quote:
| |
| | ||
| | |
| | #4 | |
| Senior Warrior Member War Room Member Join Date: Oct 2006 Location: San Francisco, CA
Posts: 3,386
Blog Entries: 11 Thanks: 723
Thanked 778 Times in 494 Posts
| Quote:
Code: ErrorDocument 404 /likes/index.php Thanks! | |
| | ||
| | |
| | #5 |
| Warrior Member Join Date: Feb 2009
Posts: 26
Thanks: 0
Thanked 7 Times in 5 Posts
|
Just a note - robots.txt doesn't GUARANTEE that bots won't access the directory. Only ethically written bots will avoid it. But, that does mean at least the big 3 will |
| | |
| | #6 | |
| HyperActive Warrior Join Date: Mar 2009
Posts: 225
Thanks: 6
Thanked 27 Times in 27 Posts
| Quote:
The worst is the scrapers who just insert random text into the browser user-agent. Don't think that putting something in your robots.txt will keep all the bots out. Most bots roaming the Internet aren't respectful. | |
| | |
![]() |
|
| Tags |
| bots, check, double, file, keeping, outpls, robots.txt, robotstxt, search |
| Thread Tools | |
| |
![]() |