How can I block web crawlers and search engines from accessing and listing an entire website?
I have a new site that I just put up but also have a test site at a different URL. For some reason and somehow Yahoo has picked up the site and I just had somebody register to the test site yesterday. I need to stop that, first of all from having the public be able to access it and secondly allowing search engines to pick it up at all. Any suggestions? I dont know how it happened in the first place because there are no links pointing to my URL which is how I thought they accessed it in the first place. Thoughts? Answers? Expertice?
Status:
Open Oct 12, 2006 - 10:33 AM
test site, web development, Search Engines, web crawlers, blocking, Yahoo
4answers
Answers
Oct 31, 2006 - 08:24 PM
The search engines should be easy enough to stop, just put a file called "robots.txt" in the root directory with this in it:
User-agent: *
Disallow: /
For stopping users I would use whatever way your host offers to password-protect directories, or if you're using Apache on Linux you can create a .htaccess file in the root of the website containing:
AuthName "Members only in here"
AuthType Basic
AuthUserFile /path/to/your/.htpasswd
AuthGroupFile /dev/null
require valid-user
and then use the utility htpasswd (in the directory you want to create the .htpasswd in) like this:
htpasswd -c .htpasswd username (for the first time only. remove the -c if you want to add more users)
Nov 01, 2006 - 01:03 AM
Thanks a lot nhinds
Sep 04, 2010 - 04:50 AM
but can you close the crawler, cause i can't get on a game that i downloaded, so can you close it please
Dec 27, 2012 - 09:46 PM
rel="no follow" and robot.txt are the only things which avoid search engine to crawl your website and nothing else i think thanks
SOURCE(s):
Search engine optimization consultant
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment