How to Automatically Login to Any Captive Portal Wi-Fi on iOS.
I have implemented a dynamic authorization portal in my workspace that allows only users with valid credentials to access the Internet. This is a simple login form that appears once on each device connected to the network. Even though it only takes a few seconds, I wanted to automate this on the iPhone. In this article, I will show you how to automatically log in to the login portal on iOS. Let’s start.
The Captive Portal resets every day and I have to enter my credentials every day to access the internet. While trying to automate this process, I found that most of the hidden portal pages send a POST request over HTTPS. Siri Shortcuts can do that, we’re just going to automate this process of entering credentials and submitting a form using the shortcuts app.
1. Find out the URL of the restricted portal
If you already know the URL of the responsive portal, write it down somewhere, because we’ll need it later. If you don’t know, ask your IT professional or log out of the responsive portal and wait until the login page appears again. The text next to the padlock symbol is the URL, write it down somewhere.
Related:Â Â How to Control tp link smart bulb
2. Adjust Wi-Fi settings
For the script to run every day when you connect to the office network, we need to configure a few settings so that the iPhone automatically connects to the office Wi-Fi network.
Go to Settings Wi-Fi 91springboard press the i button Turn on auto connect Turn off auto login.
READ ALSO:Â Fix â€“ Hey Siri Not Working on iPhone (2020)
3. Add the shortcut to your iPhone
Before you can download a shortcut, you need to allow your iPhone to install third-party shortcuts. Go to Settings Shortcuts turn on Allow Untrusted Shortcuts.
RELATED: 20 Useful Shortcuts for Apple Shortcuts App on iOS 12
Now install the shortcut on your iPhone using this link and add it to the app. A message may appear stating that installing unverified shortcuts can be dangerous, you can ignore it.
Must Read: 10 Best Mac Keyboard Shortcuts You Should Know
4. Enter your credentials
After installing the shortcut, open the shortcut and add the details provided by your IT admin. As shown in the image below, you must enter a username in the username field and a password in the password field. You will also need to enter the Wi-Fi name and the URL that asks for credentials. After entering the data, click “Finish”.
That’s all you have to do, you can now click on the shortcut or ask Siri to launch the shortcut for you. Just say â€œHey Siri, sign in to Captiveâ€ and it will execute that shortcut and you will be signed in.
Automate it as well
The shortcut works well, but we can go further. I want this shortcut to work every time I come to the office and put my iPhone on the NFC tag. You can buy NFC tags on Amazon, they are really cheap and almost invisible.
Open the Shortcuts app on your iPhone and tap the Automation tab at the bottom. Select â€œCreate Personal Automationâ€ and click â€œNFCâ€.
Now scan the NFC tag by holding it up to the iPhone. Name the tag and continue by clicking Next.
Click the Add Action button, type shortcut in the search bar and select Run Shortcut.
Here, we can simply link the shortcut we added earlier. Add the “Sign in to Captive” shortcut from the list and click “Next”.
This is completely optional, but if you want the automation to run without your permission, turn off the toggle next to Ask before start and click Finish.
That’s all you have to do. Now, when you hold the iPhone up to the tag, it launches the shortcut and authenticates the responsive portal login form.
It was an easy way to automate the tedious task of logging into the login portal every day. However, I cannot guarantee that it will work 100% on your network. Every place that hosts a Captive Portal does it differently and the basic structure is similar. If your network just asks for a username and password, then automation with this method should work. If it doesn’t, write to me on Twitter and we’ll try to figure it out together.
How to Automatically Login to Any Captive Portal Wi-Fi on iOS