Hotspot - Scripting support question

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 ~ "[1][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"
}
}


  1. 0-9A-Fa-f ↩︎

Anyone ?

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