up vote 0 down vote favorite
share [g+] share [fb]

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?

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

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.

link|improve this answer
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? – fenderplayer Jan 7 '10 at 20:44
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.