0

I have a url which i don't want indexed:

http://www.mysite.com/moduleA?param=secretkey

So when i google search for "mysite.com", i don't want the above link to appear in the search results.

However, the following urls are part of public viewing:

www.mysite.com/moduleA
www.mysite.com/moduleA?id=12345
www.mysite.com/moduleA/somepage.html

Can this be done? Can robots file be used for this?

Parag
  • 123
  • 5

1 Answers1

2

A few things you can do:

Ultimately, though, nothing secret should ever go directly in a URL like that - not all web crawlers obey these robots instructions, and some (spambots etc.) specifically search them out and look at them.

ceejayoz
  • 32,469
  • 7
  • 81
  • 105
  • Right! Basically, the hidden link is like a preview content before being posted for public viewing (or deleted). Theres no secret or personal data being hidden there. So i thought of this approach to avoid code duplication. You think its fine in this case? – Parag Jan 07 '10 at 20:44