Jump to content

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\" /]
Link to comment
https://forums.phpfreaks.com/topic/9931-prevent-a-page-showing-on-google/
Share on other sites

  • 3 weeks later...
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 pages
User-agent: googlebot
Disallow: /
[/code]
If you search on google for robots.txt you will find a load of info . . .

Hope this helps,

Charlie
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.