【问题标题】:How can I block google from crawling my page, but still let Baidu do it?如何阻止谷歌抓取我的页面,但仍然让百度去做?
【发布时间】:2019-06-25 08:54:44
【问题描述】:

我只想阻止 Google 抓取我网站上的特定页面,但我仍然希望其他搜索引擎(首先是百度)抓取它。

我不知道这是否可能。

【问题讨论】:

    标签: html seo baidu


    【解决方案1】:

    您需要创建一个 robots.txt 文件来阻止 google 的 userAgent

    //在 robots.txt 中

    User-agent: Googlebot
    Disallow: /
    
    User-agent: *
    Allow: /
    

    在此处阅读有关 robots.txt 的更多信息:https://support.google.com/webmasters/answer/6062596?hl=en

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-09
      • 1970-01-01
      • 2018-12-19
      • 2015-03-27
      • 1970-01-01
      • 2015-04-20
      • 2016-01-25
      • 1970-01-01
      相关资源
      最近更新 更多