Community discussions

MUM Europe 2020
 
jd6strings
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Tue Dec 20, 2005 8:24 pm

Redirecting after hotspot login

Tue Jan 27, 2009 10:41 pm

Hello all:

We've a hotspot up and running and I was curious if there's a method to redirect to a page after the user has successfully logged in?

Thanks as always!
 
jd6strings
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 73
Joined: Tue Dec 20, 2005 8:24 pm

Re: Redirecting after hotspot login

Wed Jan 28, 2009 6:28 pm

Anyone???
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 273
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Redirecting after hotspot login

Thu Feb 05, 2009 4:52 pm

I know there is a redirect file in hotspot but have never border trying to edit it. If you know about script well, you may try editing it to your specific url in stead of loading browser default.
JP Wireless:::
One Stop ICT, Alternative Power & Electronics Securities Solutions Provider!
Tel: +2348098798779, +2348055353151
http://www.jpwireless.net: Email: info[at]jpwireless.net
36, Diya Road, Gbagada, Lagos - Nigeria.
.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4637
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Redirecting after hotspot login

Thu Feb 05, 2009 5:32 pm

I think so, but haven't tried it. In the hotspot/login.html file there is a line in a couple places like this:
<input type="hidden" name="dst" value="$(link-orig)">
First, save the original. Did I mention saving the original?
Change "$(link-orig)" to "http://www.yourdomain.com/welcome.html"
 
User avatar
JP_Wireless
Member Candidate
Member Candidate
Posts: 273
Joined: Thu Dec 13, 2007 4:31 pm
Location: Lagos Nigeria
Contact:

Re: Redirecting after hotspot login

Thu Feb 05, 2009 5:39 pm

i think hotspot/redirect also have this "0; url=$(link-redirect)", try replacing this and see if it works.
JP Wireless:::
One Stop ICT, Alternative Power & Electronics Securities Solutions Provider!
Tel: +2348098798779, +2348055353151
http://www.jpwireless.net: Email: info[at]jpwireless.net
36, Diya Road, Gbagada, Lagos - Nigeria.
.
 
iam8up
Member
Member
Posts: 312
Joined: Sun Oct 28, 2007 10:58 pm
Location: Troy, OH
Contact:

Re: Redirecting after hotspot login

Wed Feb 11, 2009 6:09 pm

I could be wrong but I believe it is alogin.html you need to modify (short for after login maybe?) The other option is login.html as was said above.
 
ngaleyev
newbie
Posts: 33
Joined: Sat Sep 29, 2007 4:48 pm

Re: Redirecting after hotspot login

Thu Feb 12, 2009 10:25 pm

are you using radius?
if yes, you can use WISPr-Redirection-URL in rad-reply
 
Converse
just joined
Posts: 4
Joined: Thu Jan 15, 2009 7:40 pm

Re: Redirecting after hotspot login

Sat Feb 14, 2009 12:35 am

Here is what I found on 2.9.51:

The first part seems to be to get them to the remote server (editing the login.htm)
An another example is making HotSpot to authenticate on a remote server (which may, for example, perform creditcard charging):
• Allow direct access to the external server in walled-garden (either HTTP-based, or IP-based)
• Modify login page of the HotSpot servlet to redirect to the external authentication server. The external server should modify RADIUS database as needed
Here is an example of such a login page to put on the HotSpot router (it is redirecting to https://auth.example.com/login.php, replace with the actual address of an external authentication server):
<html>
<title>...</title>
<body>
<form name="redirect" action="https://auth.example.com/login.php" method="post">
<input type="hidden" name="mac" value="$(mac)">
<input type="hidden" name="ip" value="$(ip)">
<input type="hidden" name="user" value="$(username)">
<input type="hidden" name="link-login" value="$(link-login)">
<input type="hidden" name="link-orig" value="$(link-orig)">
<input type="hidden" name="error" value="$(error)">
</form>
<script language="JavaScript">
<!--
	document.redirect.submit();
//-->
</script>
</body>
</html>
As for the remote back to the mikrotik here is what I found:

• The external server can log in a HotSpot client by redirecting it back to the original HotSpot servlet login page, specifying the correct username and password
Here is an example of such a page (it is redirecting to https://hotspot.example.com/login, replace with the actual address of a HotSpot router; also, it is displaying http://www.mikrotik.com after successful login, replace with what needed):

<html>
<title>Hotspot login page</title>
<body>
<form name="login" action="https://hotspot.example.com/login" method="post">
<input type="text" name="username" value="demo">
<input type="password" name="password" value="none">
<input type="hidden" name="domain" value="">
<input type="hidden" name="dst" value="http://www.mikrotik.com/">
<input type="submit" name="login" value="log in">
</form>
</body>
</html>
Not sure if this helps at all, but I think the
<input type="hidden" name="dst" value="http://www.mikrotik.com/">
Could just be that you need to change it to your desired web destination. I think it could also be done with the variable link-orig in the first code snippet.

Kevin
 
rajeev0047
just joined
Posts: 2
Joined: Mon Nov 28, 2016 8:02 am

Re: Redirecting after hotspot login

Wed Dec 14, 2016 12:34 pm

Edit in alogin.html file. Might helpful for others.
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: No registered users and 103 guests