开发者

How to block search engines from finding sub.domains? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about programming within the scope defined in the help center.

Closed 9 开发者_如何转开发years ago.

Improve this question

I want to block search engines like Google and Yahoo from crawling user sub.domains like user.example.com, how can i do it?


Use robots.txt file in your web server.

So, in your subdomain put a robots.txt file that looks like this:

User-agent: *
Disallow: /


All sites have something specifically specified because that's what they don't want crawled by search engines...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜