本站发贴使用私人图床上传图片,默认修改链接导致 cloudflare 的 WAF 报错

6 条回复
59 次浏览

使用自建图床生成的链接上传图片,论坛会在链接后自动加一个?size=medium,会触发 cloudflare 的 WAF 规则(hotlinking)禁止访问。

示例:![image](url) → ![image](url?size=medium)

cloudflare 报错
Error 1011
Access denied
The owner of this website does not allow hotlinking to that resource (xxx.jpg?size=medium).

Please see https://developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1011/ for more details.

发表一个评论

R保持