大网数据广告活动
网站运营与故障问答

No index for an entire site

· 52CE 我爱测

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 engi…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-08-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。