Skip to content

Instantly share code, notes, and snippets.

@Znuff
Created September 2, 2020 02:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Znuff/4a52d3349412d31cd62f98a83201d4f7 to your computer and use it in GitHub Desktop.
Save Znuff/4a52d3349412d31cd62f98a83201d4f7 to your computer and use it in GitHub Desktop.

Cloudflare doesn't allow disabling IPv6 via their Dashboard any more. This works:

curl -X PATCH "https://api.cloudflare.com/client/v4/zones/<zone-id>/settings/ipv6" \
  -H "X-Auth-Email: <email>" \
  -H "X-Auth-Key: <auth-key>" \
  -H "Content-Type: application/json" \
  --data '{"value":"off"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment