I would like to have the wifi client immediately redirected to another web page on another server that would have Walled Garden links and the login for browsing to non-walled garden sites. Possible?
look at the advertise function of the hotspot…
My be what you are looking for..
Take a look in the HTTP Servlet section on this page.
http://www.mikrotik.com/testdocs/ros/2.9/ip/hotspot.php
There is an example of a redirect to a remote login page near the end of that section.
I believe that is what I want to happen. If I do not want any credentials could I just create the MT login.html as:
...Replacing $(link-redirect) with the URL of the site to be redirected too. Then on that web page have a button that sends credentials back to MT (login2.html ?) for login. I don’t care who logins only that they press the “I accept terms” button.
I have tried the first part but my browser cycles between redirect page and MT webserver. I checked the URL in the Walled Garden settings.
Ok, I have the redirect working. Now I am having trouble with passing the username/pass from the redirected page to the MT for auto login.
I have created a Hotspot user/pass.
From the redirect page I am assuming I would have a form function that would pass the user/pass to the original login.html (which I renamed to login_mt.html) ? I have tried this but it only displays the login page with empty username/pass.
So, it looks like I need a little help in how to pass the variables to the MT login page.
I don’t think it is supposed to be action=xxx.xxx.xxx.xxx/login.html on the form. I think it needs action=xxx.xxx.xxx.xxx/login.
ADD: and the form on that page that does the actual login is named “sendin”, That is where the login link goes. It is submitted by a JavaScript routine that does the MD5 hash encryption on the password.
Cool beans, thanks!