#3127 Request for very static hotspot detection page
Closed: Fixed None Opened 12 years ago by pwouters.

= phenomenon =

hosting a hotspot detection page

= reason =
for network manager to detect hotspots and take appropriate action (dns server reconfiguration, maybe even a sandbox http session)
= recommendation =

To add support to NetworkManager (and its DNSSEC detection) we need to detect whether or not we are behind a hotspot. A standard way of doing this is to get a very static page over http, and testing if the contents are wrong (eg the redirection/hotspot sign on page).

Therefor, we need something like:
http://hotspot.fedoraproject.org
or
http://fedoraproject.org/detect-hotspot/

The URL should just return "OK" to make this simple and easy to use.
It should never redirect from there to another page that returns "OK", as that redirect would be detected as a hotspot

It should use http headers to mark it "no cache" and "expiry now" so avoid the page being cached anywhere.

Its static location should last the lifetime of a fedora release, or else we risk desktops seeing every network as a hotspot.


Should the "OK" be html? Or just bare "OK" ?

Why can't we just use the default homepage or use a static text file (eg fedoraproject.org/static/hotspot.txt?

the home page will be different tomorrow. So we would think there is a hotspot.

I prefer "OK" using a mime type of text. that avoids things like html headers that today will be lowercase, and tomorrow someone will uppercase it.

it does not matter where it lives, as long as it remains there unchanged, within going through redirects on the server, for the life of the fedora releases that we shipped configs for.

ok, perhaps you could attach exactly what you want the page to be and we can look at where to stash it.

If it's txt, static would be great. Otherwise we can put it somewhere else and look at adding the cache headers for that location.

I had already added a text file to fp.o/static/ directory but i hadn't pushed the changes yet. I just did a few minutes ago.

@pwouters - is this what you need?

http://git.fedorahosted.org/git/?p=fedora-web.git;a=blob;f=fedoraproject.org/static/hotspot.txt;h=d86bac9de59abcc26bc7956c1e842237c7581859;hb=HEAD

ok, we need to add the cache/headers change now and this should be done. ;)

Looks good!. Indeed only the cache control and expire headers need fixing :)

Thanks!

Connected to fedoraproject.org.
Escape character is '^]'.
GET /static/hotspot.txt HTTP/1.1
Host: fedoraproject.org

HTTP/1.1 200 OK
Date: Thu, 16 Feb 2012 22:42:19 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Thu, 16 Feb 2012 22:01:15 GMT
ETag: "3-4b91bf78840c0"
Accept-Ranges: bytes
Content-Length: 3
Cache-Control: max-age=604800
Expires: Thu, 23 Feb 2012 22:42:19 GMT
Vary: Accept-Encoding,User-Agent
ProxyTime: D=4119995
ProxyServer: proxy02.fedoraproject.org
Content-Type: text/plain; charset=utf-8

OK
Connection closed by foreign host.

ok, I think I have this fixed.

Can you try and confirm that it's working as you expect (and if it is, close the ticket). ;)

Works great now!

Trying 140.211.169.196...
Connected to fedoraproject.org.
Escape character is '^]'.
GET /static/hotspot.txt HTTP/1.1
Host: fedoraproject.org

HTTP/1.1 200 OK
Date: Fri, 17 Feb 2012 18:42:28 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Fri, 17 Feb 2012 18:01:16 GMT
ETag: "3-4b92cbb205300"
Accept-Ranges: bytes
Content-Length: 3
Cache-Control: must-revalidate
Expires: Fri, 17 Feb 2012 18:42:28 GMT
Vary: Accept-Encoding,User-Agent
ProxyTime: D=2601837
ProxyServer: proxy06.fedoraproject.org
Content-Type: text/plain; charset=utf-8

OK

Login to comment on this ticket.

Metadata