如何根据indexnow提交url到bing搜索引擎…

bing indexnow

1.获取api key

2.验证密钥所有权

需要把密钥上传到网站可以url访问

详情见方案1/2

#建议方案1

在你主机的根目录下托管一个文本密钥文件。
必须在你的网站根目录下托管一个 UTF-8 编码的文本密钥文件{your-key}.txt,在文件中列出密钥。

例如,对于前面的例子,你将需要把你的UTF-8密钥文件托管在 https://www.example.com/d2016f64406840c5a1a7f11962c244b7.txt 且该文件必须包含密钥d2016f64406840c5a1a7f11962c244b7

2.submit urls

POST /indexnow HTTP/1.1
Content-Type: application/json; charset=utf-8
Host: <searchengine>
{
  "host": "www.example.com",
  "key": "d2016f64406840c5a1a7f11962c244b7",
  "keyLocation": "https://www.example.com/myIndexNowKey63638.txt",
  "urlList": [
      "https://www.example.com/url1",
      "https://www.example.com/folder/url2",
      "https://www.example.com/url3"
      ]
}

//postman
post https://www.bing.com/indexnow
    Content-Type: application/json
body
{
  "host": "blog.mvpbang.com",
  "key": "e1edb9370cd04514a3ee0ff93e3b0053",
  "keyLocation": "https://blog.mvpbang.com/e1edb9370cd04514a3ee0ff93e3b0053.txt",
  "urlList": [
        "https://blog.mvpbang.com/",
        "https://blog.mvpbang.com/robot.txt"
  ]
}

//注意只有200,才说明提交成功
200 OK,URL submitted successfully

alt text

3.搜索引擎提交url端点

IndexNow:https://api.indexnow.org/indexnow?url=你的链接&key=你的key
Microsoft Bing:https://www.bing.com/indexnow?url=你的链接&key=你的key
...

4.校验url

cloudflare自动提交url到bing indexnow

域名-> 缓存 -> 配置 -> Crawler Hints(开启)

Crawler Hints 会为搜索引擎和其他爬网程序提供高质量的数据。这样,爬网程序可以精确地抓取,避免浪费,同时可以普遍减少源服务器及其他 Internet 基础结构的资源消耗

alt text

reference