WebProxy : URL Filtering - block all web site

Hi everyone
I need to block all web sites except particular web sites using webproxy.
anyone know how to do this?

You Need to configure your MIKROTIK WEB PROXY from 2 sides

Firewall & Web Proxy

from Web Proxy U Should:

/ip proxy
/set enabled=yes
/set src-address=0.0.0.0
/set port=8080
/set parent-proxy=0.0.0.0
/set parent-proxy-port=0
/set cache-administrator=“webmaster”
/set cache-on-disk=no
/set max-client-connections=600
/set max-fresh-time=3d
/set always-from-cache=no
/set cache-hit-dscp=4
/set serialize-connections=no

from firewall you should:

/ip firewall nat
add chain=dstnat protocol=tcp dst-port action=redirect to-ports=8080


and now to block any website all you should do is

/ip proxy access add dst-host=www.yourhost.com action=deny

or you can do it through WINBOX (GUI) by going to IP=>Web Proxy=>Access=>add your destination host in dst-host=www.****.com and there’s a little box on the left side of the text box when you write your destination host you can click on it to mark option that everything does not equal your condition it will dropped

hi komailov,

i’m success to block some website.

how to block all web sites except particular web sites using webproxy.

i have added rule on the bottom side "ip proxy access add dst-port=80 action=deny, but some allowed website cannot be access.

help me please…!

thx

The problem, if the website use IP address (not with name server) example: http://192.168.xx.xx/mikrotik, the router cannot hit this rule.

there is another way to fix my problem?

please help me!