Allow only IPv4 or v6 on a website

I have a few websites proxied through cloudflare which simply spit your IP address back at you, however I’d like to have an option to use only IPv4 or IPv6. I added some subdomains with only one type of record (A or AAAA) and proxied them through cloudflare, but when using DiG on the one with ONLY AAAA records, it noticed a set of IPv4 records which look like the standard cloudflare IPs. Is there a way I can turn off cloudflare changing which IP version the client is using?

I’m pretty sure there’s no way to shut off IPv4, but you can shut off IPv6 with an API call if you’re on a paid plan:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.