Jump to content


This topic is now archived and is closed to further replies.


Prevent a page showing on Google?

Recommended Posts

If I password protect a directory on my Apache Server, will Google still cache the page? Ie, will it appear in a google search.

The reason I ask is that I wish to use my web-hosting to test a site, but I don't want it to appear in google anywhere at all. Will a htaccess file do the trick or can google bypass this somehow? I think I know the answer but its best to be safe. [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /]

Share this post

Link to post
Share on other sites
You can use a file called robots.txt, just place it in your sites main directory. An example of a robots.txt is:

# Webcrawlers control

# Prevent Google from indexing pages
User-agent: googlebot
Disallow: /
If you search on google for robots.txt you will find a load of info . . .

Hope this helps,


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.