Search code examples
htmlsearch-enginemeta-tagsrobots.txt

Prevent Search Engine Indexes a Web Page


I have a members control panel page which I don't want search engine to index.

I did the following:

  1. The page is secured, if there isn't a session or password provided, then direct user to main page. Redirect the user as following:

    header("location:HOME PAGE");
    exit();

  2. I put only one meta with the following attributes

name="robots" content="noindex,nofollow"

Is this solution good enough?


Solution

  • you can use robots.txt for more info see http://www.google.com/support/webmasters/bin/answer.py?answer=156449