开发者

What's the best way to stop search engine's indexing my login pages?

开发者 https://www.devze.com 2023-03-15 16:19 出处:网络
I have a login and registration MVC3 page in my /users directory.I just noticed they got listed on google.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消