News for hackers. Stuff that matters.
Re:98% of sites on Cloudflare now use IPv6 by Nullabillity on Monday November 21, 2016 @11:52AM (#13006814)
> I don't think there is any reliable way of knowing whether an HTTP client that's connecting to you via ipv4 is also capable of ipv6?

Send XHRs to a v4 subdomain and a v6 subdomain, check which requests succeed.

Re:98% of sites on Cloudflare now use IPv6 by johansch on Monday November 21, 2016 @12:08PM (#13006958)
Sure, messy, but would generally work.

I guess they could also move this checking to the user agent (because they control Chrome) to have the check performed before the user is actually waiting for results and milliseconds matter. Introduce some ugly but pragmatic HTTP header, like "Accept-IP: v6". :)

So, this way they could serve v6-only results reliably to clients that can access either both v4 and v6. (People who can only access v6.. that must be a very special kind of people.)