Answer the question
In order to leave comments, you need to log in
How to deceive Android by telling it that there is Internet on a Wi-Fi network without Internet?
I'm trying to trick android and ios devices into a Wi-Fi network without internet. There seems to be information on the Internet about
/generate_204 for Android
/hotspot_detect.html for iOS
in DNS, all requests are sent to my nginx , where two locations are registered
# Android internet hack
location /generate_204 {
add_header Content-Type text/html;
return 204;
}
# Apple internet hack
location ~ hotspot-detect\.html {
add_header Content-Type text/html;
return 200 "<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML>";
}
192.168.50.247 - - [28/May/2021:13:39:57 +0000] "connectivitycheck.gstatic.com " "GET /generate_204 HTTP/1.1" 204 0 "-" "Dalvik/2.1.0 (Linux; U ; Android 7.0; SM-T710 Build/NRD90M)" "-"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question