1、获取cloudflare的Global API Key
https://dash.cloudflare.com/profile/api-tokens
2、发送api请求
curl -X PATCH "https://api.cloudflare.com/client/v4/zones/{Zone ID}/settings/ipv6" \
-H "X-Auth-Email:{your email}" \
-H "X-Auth-Key:{Global API Key}" \
-H "Content-Type: application/json" \
--data '{"value":"off"}'
注意,到这一步只是关闭了你域名的ipv6地址解析,你还需要设定一条防火墙规则来阻止ipv6地址的访问
评论