Complete solution to Apple iOS system _wifi_portal authentication before shutting down

Source: Internet
Author: User

The Portal authentication page is automatically ejected by using captive.apple.com to reach the SSID signal connected to WiFi.

The hint will not pop up after the whitelist captive.apple.com.

However, one-click focus on the page is not allowed to jump to the cloud or other pages for certification, almost give you no opportunity to break off the WiFi. Always show cancel. Do we have a way to turn the cancellation into completion?

Of course the answer is yes.

Start by writing a portal authentication page that automatically connects all data to the IP that the device is connected to.

Auto ();                Automatically login to a number function auto () {var str_a= "auth.asp?usr=15336500020&pwd=15336500021"; var data_str_a=encodetogb2312 ( STR_A); $.ajax ({type: "GET", Url:data_str_a,success:post_fun_a (), Error:null,timeout:10000,datatype: "Jsonp", Cache: False}); function Post_fun_a () {}

This way, the portal for Apple iOS will be completed by canceling

Next, after a delay of 10 seconds, we will disconnect this account and give the button a focus on the CSS style changes to a usable state (the script builds itself)

SetTimeout (function () {Close ()}, "10000"), function Close () {               ///Next we break this number var str_c= "Userinfo.asp?opt=down&u =15336500020&i=<?php echo $i;? >&_=1452669615595 "; var data_str_c=encodetogb2312 (str_c); $.ajax ({type:" GET ", Url:data_str_c,success:post_ Fun_c (), Error:null,timeout:10000,datatype: "Jsonp", Cache:false});} function Post_fun_c () {}

So do we just disconnect the network from the account that's currently logged in?

The Wi-Fi status of Apple iOS is normal. Communication with the router is also normal, except that the router can not properly control the Internet service. If you want to continue the Internet, you have to follow the cue point "one button attention" or other people authentication service.

function Tijiao () {             //One key concerns start var str_b= "auth.asp?usr=15336500025&pwd=15336500026"; var data_str_b= encodeToGB2312 (Str_b); $.ajax ({type: "GET", Url:data_str_b,success:post_fun_b (), Error:null,timeout:10000,datatype : "Jsonp", Cache:false});} function Post_fun_b () {}           //part slightly

Did you see that? normal service account I used another number.

I'm going to have to suggest how the variable I came in.

From previous page to jump over, url address parameter

<?phpif (isset ($_request[' i ')) {$i = $_request[' i '];} else{$i = "You are an illegal user!"; >

Well, the code for the jump page HTM also complements it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.