Web proxy Enable and website block Using MikroTik Router OS:
PART 1 [WEB PROXY ENABLE]
Login in to Router using WinBox
On Main Menu click on IP ==> web Proxy
Click on Enable box to active web proxy
To make your MikroTik web proxy transparent (or force all http 80 port request pass through web proxy) follow bellow steps:
On main menu click on IP==> Firewall Click on Tab ==>NAT
Click on + sign a New Nat Rule window will appear set
Chain: dstnat
Dst. Address: [!] 192.168.10.1 {192.168.10.0/24 is your local IP address [it is important to put ! before IP address box]}
Protocol: 6 (tcp)
Dst. Port: 80
Click on next TAB ==> Action
Select Action: Redirect
Type to Port: 8080
[Now all http 80 port requests will redirect to web proxy port 8080]
It is very important to drop 8080 port on your wan interface chain=input. Otherwise globally your mikrotik will be open proxy server.
We going to block website http://www.dirtysite.com
On Main Menu click on IP==> web proxy==> click on Access button on right side of Web Proxy Settings window
Now you will get new window appear name “Web Proxy Access”
Click on + button Click on Dst. Host : type http://www.dirtysite.com
Set Action: deny click on OK button
Now your LAN user can’t access http://www.dirtysite.com
You may add more site as you needed one by one.
Note: Above configuration filter only for http 80 port, web sites which use https or 443 port need to drop by using layer 7 firewall.
if this configuration helps you then give me one karma, click on + sign left side of this window bellow my name : Nawshad