i use mikrotik v3.13 on pc i have hotspot and
i have error in this script its if he found the name in the dns cache he put it in wep proxy and when the scrept run again he Repeat the name in the wep proxy like the pic
and this is the script
:foreach i in=[/ip dns cache find] do={:local bNew "true";:local cacheName [/ip dns cache all get $i name] ;:put $cacheName;:if (([:find $cacheName "mikrotik"] != 0) || ([:find $cacheName "cnn"] != 0)) do= {/ip proxy access add dst-host= $cacheName redirect-to=google.com};:if ( $cacheName = [/ip proxy access find dst-host=$cacheName] ) do={:set bNew "false"; }}}}
and i need another script if i have many user like:
1- name=a profile=dufalt
2- name=b profile=new
3- name=c profile=dufalt
4-name=d profile=dufalt
5-bame=e profile=new
i need script to put it in user profile script onlogin do if the user login set profile=another profile
and thankes for any help