Lock the user of the hotspot on more than one MAC Address:
for sure it is safer to lock the username with the MAC address but unfortunately it is only allowed to lock the user to one MAC address and sometimes the user uses more than one deive (laptop, phone , pad ...) so we need to lock that user to all these devices (perhaps 2 or more MAC addresses) so this is a tutorial on how to do that .
1-on my computer type this
ftp://192.168.95.1 (change it to the ip of your routerboard , you may be need to login before that) then it will ask for username and password which is the same of that for winbox , now create a folder and name it users
2-inside this file create txt file for each user you want to lock more than one MAC address to it (each file in this form username.txt) and inside this file put the allowed MAC address as much as you wanna.
3-In winbox go to:
ip>hotspot>user profile and choose the profile you want to apply this for and in script on-login tab put this script:
{
:delay 1
:local m $"mac-address"
:local f [/file get value-name=contents [find name="users/$username.txt"]]
:if ($f!="") do={
:if ([:len [find $f $m]]=0) do={
/ip hotspot active remove [find mac-address=$m]
}}}
apply this for all the profile you want to lock more than one MAC to the user, if you are using usermanager then apply this to default profile
i hope this is clear .. and please do not hesitate to ask any question ....... regards