Syed Jahanzaib Personal Blog to Share Knowledge !

November 8, 2017

TikTik – Script to disconnect hotspot user if its already active in pppoe

Filed under: Mikrotik Related — Syed Jahanzaib / Pinochio~:) @ 1:27 PM

its a weird world we live in !

Fix the root cause that is making issue , dont always go for workarounds


Add this in in Hotspot > User Profile > Default > Scripts > On Login)

# Check if this hotspot user is already logged in on PPPOE on same mikrotik, then kick HOTSPOT
:local uname $user;
:local u;
:foreach u in=[/ppp active find name=$user ] do={
:log warning "$user ID is already active in pppoe. Now disconnecting from HotSpot ... Done!"
:foreach i in=[/ip hotspot active find user=$uname] do= {
/ip hotspot active remove numbers=$i;



With some modification you can add script in pppoe login profile as well, which will check if user is already active in hotspot then kick pppoe or hs user.



  1. Please Tell me how to remove terminal logo in mikrotik main ?


    Comment by Ahsan Mirza — December 11, 2017 @ 4:21 PM

  2. Jahanzaib SB, Can you please help me to block all type of video Streaming.


    Comment by Naveed — November 6, 2018 @ 7:57 PM

  3. Alsalam alaykom
    if we want to kick a use already loged with our hotspot user and a password from another computer with using hotspot as well can we do that


    Comment by ZEYAD Hamoodi — November 25, 2018 @ 12:43 PM

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: