Hello,
Why in android device when connected to hotspot then open broser and navigate to http://google.com the browser showing error than showing the login page?
If i open http://8.8.8.8 for example, the browser is automatically redirect to login page.
Maybe because google.com forces the use of https.
Your connection to “http://google.com” is marked as “secured” in Android, and changed to https://google.com in Chrome browser on a Windows PC.
so can routerboard intercept any browser url something page which using http? In cisco when we connect to the hotspot, when user enter any url, the browser will redirected to example http://1.1.1.1.
I haven’t setup a captive portal on MikroTik, but I’ve done a lot of captive portal work in other systems.
Depending on the client device - different things happen.
Some devices are older and will throw TLS errors. You need to go to a http url. There are some webservers that are setup explicitly for this purpose.
More current devices automatically check these urls, and if they get something unexpected, they’ll pop up a browser to get you sorted out.
Examples of these urls:
- http://www.msftconnecttest.com/connecttest.txt
http://connectivitycheck.gstatic.com/generate_204
https://captive.apple.com/hotspot-detect.html
If you’re getting redirected, you’ll be redirected to the captive portal’s login page.
Even newer is RFC7710, which lets the hotspot tell the client its url. RouterOS supports this, if you meet the required criteria - the hotspot needs a dns name and a valid TLS certificate. See https://help.mikrotik.com/docs/pages/viewpage.action?pageId=56459266