密码保护GitHub网站 - Google搜索结果显示

发布于 2025-02-05 05:17:16 字数 454 浏览 4 评论 0原文

我用了 https://github.com/matteobrusa/matteobrusa/matteobrusa/passection-paspection-protection-protection-protection-prot-patic-static-static-static-static-static-static-static-static-static-static-static--com-页 要密码保护GITHUB网站

,但我注意到内部页面在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

時窥 2025-02-12 05:17:16

您可以添加

  <meta name="robots" content="noindex, nofollow">

HTML文件的head。此外,您可以将页面添加到robots.txt 文件的禁用/noindex中,如下所示:

User-agent: *
Allow: /
Disallow: /404.html 
Noindex:  /404.html

You can add

  <meta name="robots" content="noindex, nofollow">

in your head of the HTML file. In addition, you can add the page to your disallow/noindex of your robots.txt file as follows:

User-agent: *
Allow: /
Disallow: /404.html 
Noindex:  /404.html
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文