Close And open Download By the numbers of users

hello
at last i get script can close and open Download By amont of online users
this script only Worked @ Hotspot and i use pppoe itry i do some thing in it to work in pppoe but i cant some one can help me ? this script cant work without Webproxy

/ip proxy access
add action=deny comment=1 disabled=no path=*.exe
add action=deny comment=1 disabled=no path=*.rar
add action=deny comment=1 disabled=no path=*.zip
add action=deny comment=1 disabled=no path=*.mp3
add action=deny comment=1 disabled=no path=*.wav
/system scheduler
add comment="" disabled=no interval=5m name="disable download" on-event=":if ([\
:len [/interface wireless reg find]] >=20) do={/ip proxy access enable [/ip\
proxy access find comment=1]\r\
\n}" start-time=startup
add comment="" disabled=no interval=5m2s name="enable download" on-event=":if (\
[:len [/interface wireless reg find]]<=19) do={/ip proxy access disable [/i\
p proxy access find comment=1]\r\
\n}" start-time=startup

That script has nothing to do with Hotspots or PPPoE, it just enables or disables the web proxy rules based on the number of wireless clients connected.

What are you trying to achieve?

script mean he will disable bath (.exe -rar-zip-mp3-wav) from webproxy
this mean that any one want to dl any bath (.exe -rar-zip-mp3-wav) we be closed
when script found 20 interface form /interface wireless he will enable the web proxy rule
when script found 19 interface from interface wireless he disable this rule
but iwant to search in /ppp interface
cause i use pppoe
any one can help me
sry about my english :frowning:
it`s so weak

Replace

[:len [/interface wireless reg find]]

with

[:len [/ppp interface find]]

iwill try it ty