I'm trying to make a device with no internet connection that redirects any connection to its wifi to a unique page, a pirate box like. I use a NodeJS server and dnsmasq to redirect all connections to the server. That's working perfectly but when I try to connect with a Android or iOS smartphone it detects it as a captive portal and the page is displayed but within an authentication popup.
I saw that the device try to connect to some IP's and if there is no response it assumes that the connection is going through a captive portal.
Is there a way to avoid that ?
Thanks a lot!
Edit: I found the list of the pages to "whitelist" :
Android Captive Portal Detection:
Domain names to white list:
clients3.google.com
iOS for iPhone:
iPhone is more complicated, since it uses many different domain names, maybe for load balancing. It also changed its strategy using different domain names through different O.S. versions.
iOS 6:
Domain names to white list:
gsp1.apple.com
*.akamaitechnologies.com
www.apple.com
apple.com
iOS 7:
Domain names to white list:
www.appleiphonecell.com
*.apple.com
www.itools.info
www.ibook.info
www.airport.us
www.thinkdifferent.us
*.apple.com.edgekey.net
*.akamaiedge.net
*.akamaitechnologies.com
Windows Desktop O.S.
Domain names to white list:
ipv6.msftncsi.com
ipv6.msftncsi.com.edgesuite.net
www.msftncsi.com
www.msftncsi.com.edgesuite.net
teredo.ipv6.microsoft.com
teredo.ipv6.microsoft.com.nsatc.net
But since my device is not really connected to internet how do I send a those pages ?