Jump to content


Photo

Prevent a page showing on Google?


  • Please log in to reply
1 reply to this topic

#1 shaggycap

shaggycap
  • Members
  • PipPip
  • Member
  • 21 posts

Posted 18 May 2006 - 03:33 PM

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\" /]

#2 snapper64

snapper64
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 04 June 2006 - 10:46 AM

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,

Charlie




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users