Cloudflare R2 图床防爬
之前用 GitHub 当图床,一个是访问的速度很慢,再一个总觉得滥用了资源。
还是转到 Cloudflare R2 了。
-
Scrape Shield => Hotlink Protection,打开
-
Security => WAF => Custom rules,设置自定义规则。
-
R2 Object Storage => Bucket => CORS policy, 添加自己的域名
设置了才知道之前图片被爬了多少次。。。
之前用 GitHub 当图床,一个是访问的速度很慢,再一个总觉得滥用了资源。
还是转到 Cloudflare R2 了。
Scrape Shield => Hotlink Protection,打开
Security => WAF => Custom rules,设置自定义规则。
R2 Object Storage => Bucket => CORS policy, 添加自己的域名
设置了才知道之前图片被爬了多少次。。。