How to Block Websites
This example will explain you “How to Block Web Sites” & “How to Stop Downloading”. I have use Web-Proxy test Package.
First, Configure Proxy.
/ip proxyenabled: yessrc-address: 0.0.0.0port: 8080parent-proxy: 0.0.0.0:0cache-drive: systemcache-administrator: "ASHISH PATEL"max-disk-cache-size: nonemax-ram-cache-size: nonecache-only-on-disk: nomaximal-client-connections: 1000maximal-server-connections: 1000max-object-size: 512KiBmax-fresh-time: 3dNow, Make it Transparent
/ip firewall natchain=dstnat protocol=tcp dst-port=80 action=redirect to-ports=8080Make sure that your proxy is NOT a Open Proxy
/ip firewall filterchain=input in-interface= src-address=0.0.0.0/0 protocol=tcp dst-port=8080 action=drop Now for Blocking Websites
/ip proxy accessdst-host=www.vansol27.com action=denyIt will block website http://www.vansol27.com, We can always block the same for different networks by giving src-address. It will block for particular source address.
We can also stop downloading files like.mp3, .exe, .dat, .avi,…etc.
/ip proxy accesspath=*.exe action=deny path=*.mp3 action=deny path=*.zip action=deny path=*.rar action=deny.Try with this also
/ip proxy accessdst-host=:mail action=denyThis will block all the websites contain word “mail” in url.
Example: It will block www.hotmail.com, mail.yahoo.com, www.rediffmail.com