Currently, you cannot directly disable IPv6 from the CloudFlare dashboard:
However, in some cases (such as when you are under a CC attack), you need to disable IPv6 to reduce proxy traffic. You can do this as follows:
First, get and record your Zone ID (ZoneID) from the overview page.
Next, press F12 to open the console, paste the code below, replace the zone_id in the link with the zone_id you recorded earlier, then press Enter to send the request.
fetch("https://dash.cloudflare.com/api/v4/zones/{zone_id}/settings/ipv6", {
"headers": {
"accept": "*/*",
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8,en-US;q=0.7,en-GB;q=0.6",
"content-type": "application/json",
"priority": "u=1, i",
"sec-ch-ua-mobile": "?0",
"sec-ch-ua-platform": "\"Windows\"",
"sec-fetch-dest": "empty",
"sec-fetch-mode": "cors",
"sec-fetch-site": "same-origin",
"sec-gpc": "1",
"x-cross-site-security": "dash"
},
"referrer": "https://dash.cloudflare.com/",
"referrerPolicy": "origin",
"body": "{\"value\":\"off\"}",
"method": "PATCH",
"mode": "cors",
"credentials": "include"
});
If no red error appears, the operation was successful. You can return to the networking page to check if the IPv6 toggle has been disabled.
(Note: Disabling it this way is not completely thorough. It is best to add an additional rule in WAF to block requests originating from IPv6 address ranges.)


