Community discussions

MikroTik App
 
abhsek
newbie
Topic Author
Posts: 25
Joined: Fri Sep 18, 2015 6:19 am
Contact:

Public Hotspot Configuration

Tue Dec 07, 2021 8:07 am

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)
 
holvoetn
Forum Guru
Forum Guru
Posts: 5461
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Public Hotspot Configuration

Tue Dec 07, 2021 1:13 pm

Do you mean to connect without any form of authentication ?
Why use hotspot then ? Simple queues would be enough in such a case, no ?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19318
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Public Hotspot Configuration

Tue Dec 07, 2021 4:52 pm

maybe they dont want to charge or authenticate and merely show a walled garden (advertisement) before providing access????
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: Public Hotspot Configuration

Tue Dec 07, 2021 7:56 pm

<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.
 
User avatar
eworm
Forum Guru
Forum Guru
Posts: 1071
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Public Hotspot Configuration

Wed Dec 08, 2021 9:05 am

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=..." />
 
abhsek
newbie
Topic Author
Posts: 25
Joined: Fri Sep 18, 2015 6:19 am
Contact:

Re: Public Hotspot Configuration

Fri Sep 16, 2022 6:39 pm

Works Perfectly. Thank you so much.

Who is online

Users browsing this forum: Ahrefs [Bot], deadpete, GoogleOther [Bot], hel, hofi76, mtkvvv, washcroft and 69 guests