html - <元名称 ="robots"> 不工作

标签 html meta robots.txt

我有一个页面:

https://www.luckycheckout.com/goto/282/cs/1?ct=1

在 head 部分包含以下代码行:

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

我的“robots.txt”文件中还有“Disallow:/goto”。

尽管如此,Google Search Console 仍提示该页面:

已编入索引,但已被 robots.txt 阻止

据我所知,一切都是有效且正确的,不应该被索引,任何人都可以解释谷歌在提示什么吗?

谢谢

最佳答案

您需要在robots.txt上删除此网站的Disallow文件:

When Googlebot next crawls that page and see the tag or header, Googlebot will drop that page entirely from Google Search results, regardless of whether other sites link to it.

Important: For the noindex directive to be effective, the page must not be blocked by a robots.txt file. If the page is blocked by a robots.txt file, the crawler will never see the noindex directive, and the page can still appear in search results, for example if other pages link to it.
source: https://support.google.com/webmasters/answer/93710


您还可以使用 Google Search Console 从 Google 索引中删除您拥有的网站。您可以在 Google Webmaster documentation 上找到更多信息.

关于html - <元名称 ="robots"> 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51820220/

相关文章:

javascript - 单击更改颜色

javascript - HTML DOM Text() 节点

html - 当 X-UA-Compatible 引用 IE=edge,chrome=1 时,什么是 X-UA-Compatible?

wordpress - 如何为 WordPress 设置 robots.txt 文件

robots.txt - Scrapy 爬虫在 robots.txt 中遵守 Crawl-Delay 的最简单方法是什么?

html - 使用 css 和 html 添加垂直子菜单

java - 第三级倒逗号(没有得到正确的标题)

java - 连接到远程 HBase 实例时出现 TableNotFoundException

html - "Bad value expires for attribute http-equiv on element meta"

robots.txt - 禁止某些页面目录但不是该页面本身