Bypasses Apple Captive Network Assistant Login in iOS 7

user1079052 picture user1079052 · Oct 30, 2013 · Viewed 21.2k times · Source

Since iOS 7 blocked the spoofing of http://www.apple.com/library/test/success.html I am looking for another way to block the Captive Network Assistant login page. Since Apple has the devices checking 1->m websites I can not be sure all are blocked on the company's open network.

If there is no way to block it I would be open to changing it to a webpage with an accept button, like a terms page, but I can not find a method to do that either.

Answer

Jotne picture Jotne · Jan 6, 2014

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>