Many Wi-Fi hotspots these days have a "web login", especially free ones. You know, the ones that redirect any HTTP request to their login form. Windows usually displays the "Additional login information may be required" notification for these.

Is there a way that I can automate the process of such logins, ie. save my username and password (for a given hotspot)? Ideally, I want this to happen without even opening my usual browser, although if the process itself automatically opens and closes an Internet Explorer window to perform the login that might be OK.

  • 2
    try using lastpass, it automatically logs you in when the webpage is opened
    – Shekhar
    Oct 10, 2013 at 16:02
  • 2
    @JessRiedel Shopping recommendation doesn't mean hardware, it can mean software too. The reason for this is because we want questions and answers to be valid for a long time. While a software recommendation can be helpful, it might not be years from now when the software isn't around or doesn't offer the desired functionality any more. softwarerecs.stackexchange.com might be a better place to post this, though. Our help center is a good place to read up on on-topic stuff.
    – user201262
    Apr 25, 2014 at 21:54
  • 3
    First, I wasn't making a distinction between hardware and software. I was making a distinction between a complex, user-specific, non-generalizable problem and a simple, broadly applicable one. Second, there are innumerable questions on this website with 1 or 2 year useful lifetime, so that criterion so that does not select against this question. Third, I have read the on topic material. I simply do not think it is being applied correctly here. Apr 25, 2014 at 22:16
  • 2
    "Is there a program out there?" Try on softwarerecs.stackexchange.com Apr 25, 2014 at 23:20
  • 3
    Fair point - clarified. I don't want to open my usual browser, because it restores all existing tabs and all of them get redirected to the login page. Then I have to either log in in every tab or click back in most of them - and depending on the Wifi provider sometimes the back button is broken, too. But if the login process opened a different browser just to log in that would be OK.
    – EM0
    May 6, 2014 at 12:34

4 Answers 4


I would create a curl command which executes on system boot. When the commands executes it will send your authentication details and log you in.

This can be achieved with Google chromes "copy as curl" feature. Copy the get request as a curl command from your web browser after you've clicked the login button into a bash script.

This assume authentication by mac address, however if its by cookie you could save the returned cookie in the appropriate browsers cookie folder.

enter image description here


Other than scripting as already suggested, there don't appear to be any Windows applications that support this. There are several Android/iOS apps however.


@Thrustmaster pointed at his Python script but you could also use PowerShell to do this.

Run the PS script which would use the Invoke-WebRequest cmdlet to connect to any known site (in the UK, we usually use bbc.co.uk, mainly because it is easy to type :)

You would then need to parse the returned object checking to make sure it wasn't the expected site.

Then you would need to identify the fields that need filling in. This would be the hard part! Not too bad if you know the layout of the login page or just have a few known pages.

Then fill in the form fields required and submit.

Finally get the script to open your browser normally.

Or maybe it would be a lot easier to keep another browser installed and just use that when on a Wi-Fi network that needed a login!


Mili is my script that helps for auto login hotspot pages!


Mili automatically checks for Mikrotik services and then try login with your login information.

also you can use multi login information like this:

            "username": "user1",
            "password": "pass1",
            "share": 5
            "username": "user2",
            "password": "pass2",
            "share": 1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .