In this article, we will show you how to block Facebook access on Mikrotik Router devices, according to the following example.
– This example model has been basically configured for IP, NAT…, so we only mention firewall rule configuration.
– Go IP -> Firewallat tab Filter Rules select + to add rule as below.
Tab General :
Chain : forward
Src. Address: your local network layer (eg: 172.16.10.0/24)
Tab Advanced :
Content: .facebook.com
Tab Action :
Action : add dst to address list
Address list: name the address list (eg: Facebook)
Time out: time the IP address in the address list is removed from the list (eg: 96:00:00)
– Similarly create 2 more rules but with Content as “.fbcdn.net” and “.facebook.net”.
– Finally create a rule to block access to the address list as follows.
Tab General :
Chain : forward
Src.Address: your local network layer (eg: 172.16.10.0/24)
Src.Address: your local network layer (eg: 172.16.10.0/24)
Tab Advanced :
Dst.Address List: select the address list created above (eg: Facebook)
Tab Action :
Action : drop
– When users access content belonging to the created Content, the IP will be automatically included in the address list, and the filter rule will block them from accessing these IPs.
!!! Thank you for following the article!!!
Xem tiếp...