troter Posted December 26, 2014 Share Posted December 26, 2014 (edited) Hi !! Lets discuss correct redirection in this topic Since iOS 7 blocked the spoofing of http://www.apple.com/library/test/success.html I start looking for another way to block the Captive Network Assistant login page. After some research i have found some alternative addresses ios uses www.appleiphonecell.com captive.apple.com captive.apple.com www.apple.com www.itools.info www.ibook.info www.airport.us www.thinkdifferent.us response is (apple.php) <HTML><HEAD><TITLE>Success</TITLE></HEAD><BODY>Success</BODY></HTML> Just not sure if i wrote redirect.php it the correct way <?php $ref = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if (strpos($ref, "www.appleiphonecell.com")){ header('Status: 302 Found'); header('Location: apple.html'); } if (strpos($ref, "captive.apple.com")) { header('Status: 302 Found'); header('Location: apple.html'); } if (strpos($ref, "www.itools.info")) { header('Status: 302 Found'); header('Location: apple.html'); } if (strpos($ref, "www.ibook.info")) { header('Status: 302 Found'); header('Location: apple.html'); } if (strpos($ref, "www.airport.us")) { header('Status: 302 Found'); header('Location: apple.html'); } if (strpos($ref, "www.thinkdifferent.us")) { header('Status: 302 Found'); header('Location: apple.html'); } Edited December 26, 2014 by troter Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.