3 ms·
There are a lot better websites to ping for this, that are used for captive portal detection. E.g. Chromium uses http://clients3.google.com/generate_204 http://
by TD-Linux 7y ago
There are a lot better websites to ping for this, that are used for captive portal detection. E.g. Chromium uses http://clients3.google.com/generate_204 http://clients3.google.com/generate_204 and Firefox uses http://detectportal.firefox.com/success.txt http://detectportal.firefox.com/success.txt.
- bspammer 7y agoAm I right in thinking that either of those pages going down would result in "Sign in to your network" dialogs being shown in every single instance of their respective browsers? That's crazy. I mean I know this is google we're talking about, their uptime is second-to-none, but that still seems like a hell of a dependency.
- OskarS 7y agoI doubt it. I think these are for detecting whether or not you're in a "captive portal". I.e. airport wifi that requires you to enter login credentials or something. But hey, give it a whirl: block detectportal.firefox.com with your hosts file and see what happens.
- baud147258 7y agoI gave it a try, I didn't see any difference.
- praseodym 7y agoNo it does not. It will only show that dialog if the page returns anything different than the expected response, exactly like a captive portal would.
- sgeisler 7y agoThat could even be used to return an enum instead of bool: Online, CaptivePortal with the URL as member and Offline.