How to check for unrestricted Internet access? (captive portal detection)

前端 未结 6 995
时光说笑
时光说笑 2020-12-04 09:13

I need to reliably detect if a device has full internet access, i.e. that the user is not confined to a captive portal (also called walled garden), i.e. a

6条回答
  •  不思量自难忘°
    2020-12-04 10:07

    Another possible solution might be to connect via HTTPS and inspect the target certificate. Not sure if walled gardens actually serve the login page via HTTPS or just drop the connections. In either case, you should be able to see that your destination is not the one you expected.

    Of course, you also have the overhead of TLS and certificate checks. Such is the price of authenticated connections, unfortunately.

提交回复
热议问题