gpt4 book ai didi

image - Twitter 元图像未在 Twitter 上呈现,因为它是 "may be restricted by the site' s robots.txt 文件”

转载 作者:行者123 更新时间:2023-12-03 23:16:38 25 4
gpt4 key购买 nike

所以这是我尝试使用 Twitter 时的链接,该图像以某种方式不起作用,而它适用于 Facebook。



它仅适用于 Facebook,但对于 Twitter,我遇到了问题:

WARN: The image URL https://scontent.xx.fbcdn.net/v/t31.0-8/19388529_1922333018037676_3741053750453855177_o.jpg?_nc_cat=0&oh=ba7394f2a6af68cb4b78961759a154f1&oe=5B6BC349 specified by the 'twitter:image' metatag may be restricted by the site's robots.txt file, which will prevent Twitter from fetching it.



不知道是什么原因导致这里是我的 robots.txt:
User-agent: *
Disallow: /translations
Disallow: /manage
Disallow: /ecommerce

这是复制问题的链接: https://invoker.pvdemo.com/album?album=1422199821384334&name=gallery

最佳答案

您的 robots.txt 仅与您的网址相关。对于托管在 https://scontent.xx.fbcdn.net/ 的图像,相关robots.txt为 https://scontent.xx.fbcdn.net/robots.txt .

目前,这个 robots.txt 阻止了一切:

User-agent: *
Disallow: /


URL Crawling & Caching 下所述, Twitter 的爬虫 ( Twitterbot ) 尊重 robots.txt:

If an image URL is blocked, no thumbnail or photo will be shown.

关于image - Twitter 元图像未在 Twitter 上呈现,因为它是 "may be restricted by the site' s robots.txt 文件”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49634798/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com