Cannot access from workers.dev subdomains

curl -s https://huggingface.co/Xenova/bert-base-uncased/resolve/main/config.json
curl -s https://huggingface.co/Xenova/bert-base-uncased/resolve/main/config.json -H "Referer: https://workers.dev/"
curl -s https://huggingface.co/Xenova/bert-base-uncased/resolve/main/config.json -H "Referer: https://example.com/"

Weird stuff happens when adding a referer from a workers.dev subdomain. It’s not just this file, it’s everything.

Hi @sebz-me
The issue here is that Hugging Face blocks requests from certain origins (like workers.dev subdomains) that have been used to mirror the HF website 1:1. This is a platform-level policy to prevent abuse.