How to Disable IPv6 Support on Cloudflare



Cloudflare makes it a chore to disable IPv6 support on their edge servers, you can’t just flick the switch on the dashboard without a subscription, which is annoying.

4zqi9nln.bmp

^This switch is normally switched on and you can’t flick it off, however, for some reason Cloudflare lets you disable it via its API, here’s an example:

Using the API

curl --request PATCH \
        --header 'X-Auth-Email: YOUR_LOGIN_EMAIL' \
        --header 'X-Auth-Key: YOUR_GLOBAL_API_KEY' \
        --header 'Content-Type: application/json' \
        --data '{ 
            "value": "off"
    }' https://api.cloudflare.com/client/v4/zones/ZONE_ID_OF_YOUR_DOMAIN/settings/ipv6

Note: You’ll have to rerun this command if you have other domains, but I think that’s obvious.

© 2022-2024 - konakona.moe - all rights reserved Last Mod.: 2024-10-12 | Created On: 2024-04-12 | History