Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

First, nothing you've said in this thread is a justification for systems you design -even if they're hand-operated- to be using a service run as a courtesy to wayward humans rather than -say- a CDN's status page. If you refuse to automate this detection (and save a whole bunch of bandwidth by doing so), then bookmark <http://cloudflarestatus.com> and use it for your manual verification, if you do nothing else.

Second, why are you doing this check manually? Every major consumer OS and web browser does this for you:

Firefox does it automatically regardless of OS [0] by hitting 'firefox-portal-detection.com'. Windows does this [1] by hitting one of a few domains, depending on OS vintage. OSX and iOS are said to do this by hitting 'captive.apple.com', and Chrome by hitting one of a few domains, but I can't find corroborating official docs. Moreover, this report [2] published by the WBA ~six years ago [3] confirms that every major OS except for Linux -as well as some minor ones- does this automatically for you... and both Firefox and Chrome do it regardless of OS, so the lack of OS-level detection on Linux doesn't matter. I'd be shocked if things have gotten worse in the past six years, especially with the publication of relevant RFCs back at the turn of the decade.

Don't be a gaping asshole. If you must manually hammer on something, hammer on <http://cloudflarestatus.com> or similar. Don't hammer on example.com.

[0] <https://support.mozilla.org/en-US/kb/captive-portal>

[1] <https://learn.microsoft.com/en-us/troubleshoot/windows-clien...>

[2] <https://captivebehavior.wballiance.com/>

[3] <https://github.com/wireless-broadband-alliance/captive-behav...>



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: