密码保护GitHub网站 - Google搜索结果显示
,但我注意到内部页面在Google搜索结果中显示。因此,从技术上讲,任何人都可以无需密码访问网站。
有什么办法可以防止内部页面在Google搜索结果上显示?
I used this
https://github.com/matteobrusa/Password-protection-for-static-pages
to password protect a Github website
but i noticed that internal pages show in Google search results. So technically, anyone can access the website without password.
Is there any way I can prevent internal pages from showing on Google search results?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以添加
HTML文件的robots.txt 文件的禁用/noindex中,如下所示:
head
。此外,您可以将页面添加到You can add
in your
head
of the HTML file. In addition, you can add the page to your disallow/noindex of yourrobots.txt
file as follows: