Community discussions

MikroTik App
 
DoubleDB
newbie
Topic Author
Posts: 25
Joined: Thu Feb 20, 2020 12:53 am

Hotspot - Scripting support question

Sun May 21, 2023 12:22 pm

Hello,

In regards to hotspot profile "on-login" scripting - is it possible to do conditional redirecting the user after login?
I.e. to replace $(link-orig) with a different location?

For example:
:if ([:typeof $hasmac]="nil") do={
:if ($m ~ "^[0-9A-Fa-f][048Cc]") do={
/ip hotspot user set $voucher mac-address=$m;
} else={
# Redirect the user to /instructions-disable-randomized-mac.html hosted locally <-------
:log info "User: $voucher has RANDOMIZED MAC: $m"
}
}
 
DoubleDB
newbie
Topic Author
Posts: 25
Joined: Thu Feb 20, 2020 12:53 am

Re: Hotspot - Scripting support question

Fri Jul 14, 2023 4:12 pm

Anyone ?

Is there a way to serve a custom html via the hotspot?

Who is online

Users browsing this forum: No registered users and 29 guests