What's the best way to stop search engine's indexing my login pages?
I have a login and registration MVC3 page in my /users directory. I just noticed they got listed on google.
Is there a good and bad way to exclude the开发者_开发问答se from google?
Short answer: use robots.txt
file also add rel="nofollow"
attribute for all links that lead to those pages.
make a robots.txt in your root with:
User-agent: *
Disallow: <your login page>
update the urls which you dont want to get indexed by google in robots.txt
Which you can control it from the google.com/webmasters
精彩评论