网站报错 1034
我的站点 fruition.tangly1024.com 是由CloudFlare托管的,绑定了一条A记录在IP 1.1.1.1上,通过Worker脚本动态渲染了一个notion博客。
然而最近访问网站显示错误 Error 1034,并且提示Check your DNS records to ensure they are pointed to the IP address(es) you were assigned at registration.


另一种错误 1014

查阅官方文档
错误原因是:边缘IP受限,这意味着此网站使用了不被cf开放的节点ip

起因
之前信号旗发出的CF限制自选IP,看来这件事应该是真的。目前被限制的为部分回源IP(原本就不应该有直连路由)。
解决
不要用现在的1.1.1.1ip。换成其他的cloudflare的ip即可,方法有三种。
一、 官方回源ip(推荐)
根据评论区大神的意见,参见此issue中的解决方案。 https://github.com/stephenou/fruitionsite/issues/173
在CloudFlare 中添加一条A映射,使用官方的192.0.2.0 作为回源IP即可。

二、用ping获取新的ip
请从ping cloudflare.net的结果中重新搞个ip使用,

三、使用better-cloudflare-ip优选IP
badafans/better-cloudflare-ip
执行以下脚本即可获取最优IP
curl https://proxy.freecdn.workers.dev/?url=https://raw.githubusercontent.com/badafans/better-cloudflare-ip/master/shell/cf.sh -o cf.sh && chmod +x cf.sh && ./cf.sh

参考
stephenou/fruitionsite/issues/173