Captive portal detection in abrowser

4 risposte [Ultimo contenuto]
Avron

I am a translator!

Offline
Iscritto: 08/18/2020

When I connect to a wifi network using what is perhaps called a "captive portal", abrowser does not find it and then I can't use that wifi network. In "about:config", I saw that:
- network.captive-captive-portal.enabled is set to false
- captivedetect.canonicalURL is empty

Would the captive portal detection work if the first one is set to true and the second one to some appropriate URL (which one)?

I read that it is not possible to make an extension that modify those. Another solution could be a specific user profile, then one can start with the profile in which it is enabled, connect, close abrowser and start it again with the usual profile. Can anyone think of a more convenient solution?

jxself
Offline
Iscritto: 09/13/2010

https://gitlab.trisquel.org/trisquel/package-helpers/-/blob/aramo/helpers/DATA/firefox/settings.js?ref_type=heads

This is turned off because captive portals can only be detected by making requests over the network. A project policy is that Trisquel should not make connections over the network on its own, especially just as a result of joining some random network.

What I do in these cases is go to any random site that's available over HTTP. The request usually then gets redirected to the appropriate location. I happen to have my own self-hosted server at home so I make sure that one of the domain names can be accessed over HTTP (i.e. that it's not force-redirected to HTTPS) just for this purpose.

Avron

I am a translator!

Offline
Iscritto: 08/18/2020

Thanks, I will try this next time. I just found http://httpforever.com that seems to be exactly for that purpose.

Lappi
Offline
Iscritto: 05/29/2022

What do you think of the
http://httpforever.com/
Avron mentions? Is it safe to use that?

Adrian Malacoda

I am a member!

Offline
Iscritto: 12/26/2010

Any site that's available through HTTP will work for this purpose. Firefox by default uses the URL http://detectportal.firefox.com/canonical.html but as it's disabled by default I have this bookmarked for when I need to run it manually.