Mikrotik Tools

Notification Expired for Hotspot, PPPoE & Static IP

Mikrotik Proxy Isolation Script Generator

Mikrotik Script
###############################################################
# NOTIFICATION EXPIRED FOR HOTSPOT, PPPOE AND STATIC IP WITH PROXY
# Date/Time: 
# Created By: Mua.lat
###############################################################

/ip proxy set enabled=yes max-cache-size=none port=8082
/ip proxy access 
add action=allow dst-port=8082 comment="Expired by Mua.lat"
add action=deny redirect-to=192.168.1.1:8082 comment="Expired by Mua.lat" dst-port=80          

/ip firewall address-list
add list=EXPIRED address=0.0.0.0 comment="Expired by Mua.lat"

/ip firewall filter
add action=drop chain=forward comment="Expired by Mua.lat" dst-port=!80,8082 protocol=tcp src-address-list=EXPIRED
add action=drop chain=forward comment="Expired by Mua.lat" dst-port=!53,5353 protocol=udp src-address-list=EXPIRED

/ip firewall nat
add chain=dstnat src-address-list=EXPIRED protocol=tcp action=redirect to-ports=8082 comment="Expired by Mua.lat"

/ppp profile
add address-list=EXPIRED comment="Expired by Mua.lat" name=EXPIRED on-down=":local username $\"user\";\r\n/ip proxy access remove [find comment=\"ppp-$username\"];\r\n/ip firewall address-list remove [find comment=\"ppp-$username\"];" on-up=":local username $\"user\";\r\n:local address $\"remote-address\";\r\n/ip proxy access add action=deny src-address=$address comment=\"ppp-$username\";\r\n/ip firewall address-list add list=EXPIRED address=$address comment=\"ppp-$username\""

/ip hotspot user profile
add add-mac-cookie=no address-list=EXPIRED !mac-cookie-timeout name=EXPIRED on-login=":local username $\"user\";\r\n:local ipaddress $\"address\";\r\n/ip proxy access add action=deny src-address=$ipaddress comment=\"hs-$username\";\r\n/ip firewall address-list add list=EXPIRED address=$address comment=\"hs-$username\"" on-logout=":local username $user;\r\n/ip hotspot cookie remove [find user=$username]\r\n/ip proxy access remove [find comment=\"hs-$username\"]\r\n/ip firewall address-list remove [find comment=\"hs-$username\"];" shared-users=50

Upload error.html to /webproxy folder in Winbox Files.

Page Preview (Scale 1:2)

EXPIRE!

DEAR CUSTOMERS, WE INFORM YOU THAT YOUR INTERNET SERVICE IS CURRENTLY TERMINATED. PLEASE MAKE BILL PAYMENTS THROUGH THE ACCOUNT WE PROVIDE. IN ORDER TO REMAIN INTERNET SERVICE ACTIVE, YOU ARE REQUESTED TO MAKE PAYMENT BEFORE THE DATE OF EVERY MONTH
Contact Admin: +62813-2222-3333
Quick Guide
  • Download error.html and upload to Winbox Files inside webproxy/ folder.
  • Set User Profile to EXPIRED for Hotspot/PPPoE users.
  • For Static IP, manually add their IP to Firewall Address-List named EXPIRED.
Cleanup Script
/ip proxy set enabled=no port=8080 max-cache-size=none 
/ip firewall nat remove [find comment="Expired by Mua.lat"]
/ip firewall filter remove [find comment="Expired by Mua.lat"]
/ip firewall address-list remove [find comment="Expired by Mua.lat"]
/ppp profile remove [find comment="Expired by Mua.lat"]
/ip proxy access remove [find comment="Expired by Mua.lat"]
/ip hotspot user profile remove [find name ="EXPIRED"]
/ip address remove [find comment="Expired by Mua.lat"]

© 2026 Mikrotik Script Generator. Inspired by Mua.lat