Jump to content

Recommended Posts

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 by troter
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...