Page 1 of 1

Public Hotspot Configuration

Posted: Tue Dec 07, 2021 8:07 am
by abhsek
I want my Mikrotik Hotspot to be like,

When users get connected , login page pops up and then after certain seconds , they should be automatically connected to internet.

Is this possible?

( For now I'm using trail in server profiles , but for that users need to click on trail button in hotspot page)

Re: Public Hotspot Configuration

Posted: Tue Dec 07, 2021 1:13 pm
by holvoetn
Do you mean to connect without any form of authentication ?
Why use hotspot then ? Simple queues would be enough in such a case, no ?

Re: Public Hotspot Configuration

Posted: Tue Dec 07, 2021 4:52 pm
by anav
maybe they dont want to charge or authenticate and merely show a walled garden (advertisement) before providing access????

Re: Public Hotspot Configuration

Posted: Tue Dec 07, 2021 7:56 pm
by 2frogs
<html>
<head>
<meta http-equiv="refresh" content="0; url=http://"YOUR_ROUTER_IP/DNS"/login?username=T-$(mac-esc)&dst=http://www.google.com" />
</head>
</html>
Put this in your login.html, change the 0 after content to whatever seconds and update the YOUR_ROUTER_IP/DNS to your hotspot.

You will still use the Trial for this.

Re: Public Hotspot Configuration

Posted: Wed Dec 08, 2021 9:05 am
by eworm
As you redirect to a page on the same device it should be possible to give the URI only:
<meta http-equiv="refresh" content="0; url=/login?username=..." />

Re: Public Hotspot Configuration

Posted: Fri Sep 16, 2022 6:39 pm
by abhsek
Works Perfectly. Thank you so much.