Community discussions

MikroTik App
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

"login" and "logout" urls

Sun Jul 24, 2005 7:08 am

This maybe my second post, I cant find my previous post so forgive me for double posting.

Can we make "login" and "logout" legitimate urls so that hotspot users can just type "http://login" and "http://logout" on a blank address space instead of "http://10.5.50.5.1/login.html" and "http://10.5.50.5.1/logout.html" respectivelly.


Thanks .

Robert S.
 
thpet
just joined
Posts: 4
Joined: Thu Jan 27, 2005 1:26 am

Thu Jul 28, 2005 1:19 pm

You can make 'login' a url. Just add login as an a-record in your DNS-server.
ex: value: login ip:10.50.5.1
The hotpspot will redirect url-request to login page automaticly.
You could do the same with logout, but you would have to make this a-record point to a different IP on another webserver with a webpage redirecting back to "http://10.50.5.1/logout.html" on the Mikrotik Hotspot server.
 
User avatar
Roman
Frequent Visitor
Frequent Visitor
Posts: 81
Joined: Wed Oct 06, 2004 11:24 am

Thu Jul 28, 2005 2:30 pm

you won't need second because if you're already logged in router will give you a page with your session time and "log off" button..
so logout can point to the same ip
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Thu Jul 28, 2005 4:23 pm

Thanks guys, I will try to test it and will give feedback in a few days

Robert S.
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Sat Jul 30, 2005 5:27 pm

well, I have tried it but didnt work. when you type in logout on the address bar it displays the status.html instead of the logout.html

Anybody tried it yet?
 
User avatar
lastguru
Member
Member
Posts: 432
Joined: Fri May 28, 2004 9:04 pm
Location: Certified Trainer/Consultant in Riga, Latvia
Contact:

Mon Aug 01, 2005 8:07 pm

that is only a small problem since you may edit the status page that way so it would instantly redirect the browser to the logout page.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Tue Aug 02, 2005 2:28 pm

It is better to modify (create) rstatus.html - then status page will still be
available.
 
User avatar
infomate
Member Candidate
Member Candidate
Topic Author
Posts: 114
Joined: Sat May 21, 2005 2:30 pm
Location: Dumaguete City, Philippines

Wed Aug 03, 2005 5:33 am

hmmmmm. nice idea, let me try that!

thanks guys!

Robert S.

Who is online

Users browsing this forum: BoraHorza and 43 guests