Server blocklisted from DNS API?

For Workers & Pages, what is the name of the domain?

N/A

What is the error number?

419

What is the error message?

Please wait and consider throttling your request speed

What is the issue or error you’re encountering

When attempting to update DNS records via API from my server, I receive a 419 error even when it is the first request in ~24 hours.

What steps have you taken to resolve the issue?

I’ve rolled the API key and used the curl command supplied by Cloudflare to test it; it receives the same error from that server, but when running the command from a different server it works as expected. I do not have any other scripts on that server that are touching any parts of Cloudflare’s API; I do have a script that nightly uploads some backups into R2, but it’s unaffected.

I suspect my server is blocklisted but I don’t know why it would be or how to go about resolving that.

What are the steps to reproduce the issue?

Any attempt to contact the API from my server receives the same 419 error. My API key is not affected, as using it from a different location works as expected.

Most likely you’re sharing an IPv6 prefix with a lot of other users. Try using IPv4 instead.

Thank you, that solves it, even though I do have a dedicated IPv6 address on that server switching to IPv4 does allow the request to go through.

Incidentally, not sure how I managed to get the error number wrong multiple times, but it’s actually a 971 error code, not 419.

The problem is, Cloudflare can’t possibly know the size of your prefix, so they have to apply rate limits to rather large prefixes or it would become meaningless.

Even though you have your own prefix, the one that Cloudflare applies the rate limit to is most likely shared with others.