Bypasses Apple Captive Network Assistant Login in iOS 7

时光总嘲笑我的痴心妄想 提交于 2019-12-04 16:32:11

Since IOS7 apple now test more than 200 random URL too see if its on internet, you can not open for one and one page.
The way to handle this is to create a filter that looks for User Agent UA CaptiveNetworkSupport.
If portal sees this, it should return Success back to client.

User Agent:

CaptiveNetworkSupport

HTTP header:

HTTP/1.1 200 OK
Content-Type: text/html
Connection: close
Vary: Accept-Encoding

HTTP Response:

<HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML>

On thing you might try, is always redirecting to a https page, the Captive Network Assitant expects a 302 redirect to a http url.

So, if whenever an http request comes in on your captive portal, you return a 302 redirect to an https page, the CNA won't appear.

Example request

Request URL:http://www.somepage.com
Request Method:GET

Response Headers Contain:

...
HTTP/1.1 302 Hotspot redirect
Location:https://www.mycaptiveportal.com
...
AlexT82

Following this post: Facebook.com and the iOS7 Captive Portal Detection

The IOS 7 devices check for the following domains:

www.appleiphonecell.com
captive.apple.com
captive.apple.com
www.apple.com
www.itools.info
www.ibook.info
www.airport.us
www.thinkdifferent.us

So if you'd open(unblock) those domains (like you did before with the success page), it should revert to the old behaviour.

However, there are also rumors that Apple now checks about 200 domains (which would then make these domains irrelevant), but i did not see confirmation of that.

I hope this helps.

Regards,

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!