问题原文
原帖链接 · Nrc · CC BY-SA 4.0
I am finishing a new project. I have been working local for the last weeks/months. Now I want to begin the first tests on the real server and sql database. I do not want the site to be public yet and I do not want the search engines take the site into account till is ready (that will be soon but I will need a week or two) How should I do that?
I know that for a single page I should put that in the head:
<meta name="robots" content="noindex" />
For an entire site, should I put that line of code on all the pages or there is a better way?
社区高分解答
原帖链接 · AnkDasCo · CC BY-SA 4.0
Nick's answer to add robots.txt might not stop Google from index, it just says stop crawling but Google might index - official link here.
Adding meta noindex is too risky if you are working with a team that is not aware of implications of noindex tag, if it is pushed to production env.
<meta name="robots" content="noindex">
I would recommend you to go with password protecting your website, that seems to work the best and easier to manage, with team members who are not big on SEO. And does the job of stopping access to users as well as search engines.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
