what is wrong with this script !!

:global list ""; :foreach i in [ /ip web-proxy access find] \
do={:if ([:find [/ip web-proxy  access get $i comment] "Allow Download"]=0) \
do={/ip web-proxy access print  /ip web-proxy access enable $i } };

1- it will not run
2- I used print be4 enabling cuz enable will not work if i didn’t user print commant be4 !

:foreach i in [ /ip proxy access find] do={
:if ([:find [/ip proxy access get $i comment] "Allow Download"]=0) do={/ip proxy access set $i disabled=no } 
};

It’s Proxy instead of Web-Proxy, and Print command doesn’t work in Script for obtaining/assigning index values - but the index ‘counter’ is already being run by the For-Each loop.

Also not sure why you had a global variable called ‘list’ in there.

See how that works for you.

-Krige

no i’m running Web-Proxy
telnet here crash maybe this the reason why scrip won’t run , u’re right about the Index
for telnet crashing i tried as recommended to uninstall all packages unused but no luck i will try this scrip on another router with working Telnet Service Thanks for ur help

tried it on another MikroTik with Working Telnet it works Good .
it’s really ugly thing to install router especially when its so distant :frowning: