https://www.encrypted.at/android-captive-portal/ Skip to content en|crypted.at private blog * Home * Categories + English o OpenWRT o Nextcloud o Android o Asterisk o Firefox o Others + German / Deutsch o Linux * Contact * Imprint + Privacy Policy Wireless Router April 21, 2020Comments (1) Categories:Android, Tutorials Tags:Android, Captive Portal, Privacy Changing the Android captive portal page If you don't want your Android phone to always contact a Google server when switching networks, the following article might be useful! It's pretty easy to switch the captive portal check URL on an Android phone. But first... What is a captive portal? Ever been connected to a public or hotel WiFi? Chances are, if you tried to connect to it, your phone notified you that you had to "Sign in to Wi-Fi network" - and that's what a captive portal is: The page that has to be accepted before being able to surf on the net. In some cases like in a hotel, you might have to log in on that page too. You can read more about captive portals on Wikipedia. But, why should I change it? Well, on Android 6 or higher, every time you switch networks, your phone tries to access the following URL: http://connectivitycheck.gstatic.com/generate_204 As we can see, gstatic.com - Google's servers. We might not want Google to know our new IP address or when we switched between networks. So... Why don't we just self-host it? It's pretty easy. Self-hosting it To self-host the page, you just need a web server and some ability to return your own HTTP status code - we'll need a "204 No Content" here. Here's my PHP script: " settings put global captive_portal_https_url "https://" Replace with your own link. Ensure that your web server does not forward http:// to https:// because that would mean a 301 status code instead of 204! You should start seeing access entries in your web server log as soon as you reconnect to your wireless network. My URLs If you want to, you can just use my URLs - logging is disabled here: settings put global captive_portal_http_url "http://conntest.yxa.at/204.php" settings put global captive_portal_https_url "https://conntest.yxa.at/204.php?https" That's it! You've now changed your captive portal link on your Android device. You might want to change the link in your Firefox browser too. Post navigation Next post Previous post Latest posts Element/Riot Chat: Fix "Waitin... July 19, 2021 Kubuntu 18.04/20.04: Windows (... June 5, 2021 Hide the brute-force warning i... April 12, 2021 Fix for Synology Cloud Sync: S... April 2, 2021 Working Tidal music app on Ubu... March 8, 2021 TeamSpeak on Ubuntu: Fix Initi... January 15, 2021 Comments (1) for post "Changing the Android captive portal page" * Tobias says: January 4, 2021 at 18:24 Thank you for the explanation! I didn't even know that this page was called up every time. Will put it into practice in the next few days. Very well explained, even for people who don't understand much in the subject. Reply Leave a Reply Cancel reply Your email address will not be published. Required fields are marked * [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] Save my name, email, and website in this browser for the next time I comment. [Post Comment] [ ] Comments (1) en|crypted.at - a small tutorial and random-thoughts blog jbj lbh sbhaq n frperg zrffntr, lbh oberq gub?