CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
31–40 of 85 posts
Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#32Ironically, if CoffeeShopWifi.com works successfully, the users won't see it.
Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#33Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#34I don't understand how this (and other similar sites mentioned) work. What is going on with the network that makes visiting a non-SSL site make it work? Anyone care to offer an explanation or have a link to one?
The way a captive portal works is that the router at the coffee shop sees your browser's DNS request for `google.com` and instead of responding with the real IP address for Google it lies to your browser and returns an IP address which it controls. If google.com were a non-HTTPS website then the router could simply then serve up any arbitrary content it wanted. i.e., it's own login/access form. However, since google…
I remember in public school, IT had a website blocker that was effectively was a captive portal that would just route you to a "BLOCKED" web page and only could handle blocking non-HTTPS domains. Many sites were already going HTTPS by senior year so it was trivial to go to https://facebook.com and have full access. Another possibility was using a cgi-proxy. The site blocker was a blacklist so I hosted my own cgi-proxy when the one commonly used got blacklisted.
Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#35Great work!
Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#36Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#37Seems like the DHCPACK message and/or router advertisement could/should have a reference to the URI that has policy/billing form that's required to utilize a gateway. That way we don't need a special magical service that expects to be redirected to the policy form. AFAICT each OS/distro seems to solve this their own way currently, with their own service. Does any such standard feature already exist?
https://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Pro...
Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#38Re: CoffeeShopWifi.com – An HTTP website for connecting to guest WiFi
#39I like the straightforward explanation this site provides. That said, I tend to use http://example.com to trigger captive portals because it's an IANA reserved domain [1] that other people can't register. This gives me confidence to browse to it without fear that the domain could lapse in the future and get taken over (e.g. in a watering hole attack). [1]: https://www.iana.org/domains/reserved
Agreed - I always use example.com as well. Also worth noting that example.net, while not listed on the IANA page, is also reserved.
https://datatracker.ietf.org/doc/html/rfc6761#section-6.5
> The domains "example.", "example.com.", "example.net.", "example.org." [...]