开发者

Private domain for clients, not for public

I have 2 domains:

1) mydomain.com (for my public site, my normal domain for everyone that shows products, services etc...)

2) myclientportal.com (this one is for clients only)

My question is:

What can I do to make sure the myclient开发者_如何学Pythonportal.com does not show up on any search engine?

Since it's a "private" or "member" domain I don't want any traffic on this domain publicly, therefore, I don't want this domain to show up on search engine. I only want registered users that use our services.

Thank you


Obviously, you can't prevent your clients from mistakenly creating public links to your private site.

Two thing you want to do.

1- Create a robots.txt file that tells robots to go away. Put this file at the content root of your site, and in it put:

User-agent: * Disallow: /

Note that this tells robots to go away, but does not force them to respect your wishes. If you want to ensure that nobody other then your clients ever even sees the root page for this private site then I would suggest

2- Adding authentication at the web server level. If you are using Apache, start here: http://httpd.apache.org/docs/1.3/howto/auth.html


The first thing you'll want to do is set your robots.txt file. Just google "robots.txt" and you'll find enough to start.

Then you'll want to think about limiting access to your clients' IP addresses only.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜