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\" /] Link to comment https://forums.phpfreaks.com/topic/9931-prevent-a-page-showing-on-google/ 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 Link to comment https://forums.phpfreaks.com/topic/9931-prevent-a-page-showing-on-google/#findComment-41665 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.