shaggycap Posted May 18, 2006 Share Posted May 18, 2006 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\" /] Quote Link to comment Share on other sites More sharing options...
snapper64 Posted June 4, 2006 Share Posted June 4, 2006 You can use a file called robots.txt, just place it in your sites main directory. An example of a robots.txt is:[code]# Webcrawlers control# Prevent Google from indexing pagesUser-agent: googlebot Disallow: / [/code]If you search on google for robots.txt you will find a load of info . . .Hope this helps,Charlie Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.