Ticker

6/recent/ticker-posts

How MikroTik Firewall Blocks Websites Facebook and YouTube?

MikroTik Firewall is a powerful security tool that can be used to block unwanted websites. If you are a network administrator, sometimes it may be your requirement to block any website like Facebook, YouTube, Pornographic site and so on. To block these types of websites, you just need to create Firewall Rules that will drop any connection to these websites through your MikroTik Router.

How MikroTik Firewall Blocks Websites Facebook and YouTube

The best way is to block via the address list. Since the layer7 protocol no longer works properly due to the HTTPS protocol.
You have to copy and paste everything below into "new terminal" on MikroTik.

1. Block YouTube

/ip firewall address-list
add address=www.youtube.com list="Block youtube"
add address=googlevideo.com list="Block youtube"
/ip firewall filter
add action=drop chain=forward dst-address-list="Block youtube"
/ip firewall address-list
add address=www.youtube.com list="Block youtube"

2. Block Facebook

/ip firewall address-list
add address=www.facebook.com list=block-facebook
add address=facebook.com list=block-facebook
add address=login.facebook.com list=block-facebook
add address=www.login.facebook.com list=block-facebook
/ip firewall address-list
add address=fbcdn.net list=block-facebook
add address=www.fbcdn.net list=block-facebook
add address=fbcdn.com list=block-facebook
add address=www.fbcdn.com comment=www.facebook.com list=block-facebook
add address=static.ak.fbcdn.net list=block-facebook
add address=static.ak.connect.facebook.com list=block-facebook
add address=connect.facebook.net list=block-facebook
add address=www.connect.facebook.net list=block-facebook
add address=apps.facebook.com comment=www.facebook.com list=block-facebook
/ip firewall fi
add action=drop chain=forward comment="BLOCK FACEBOOK" dst-address-list=block-facebook

3. How to Allow a Specific User to access a Blocked Website. 

Enter Your IP Address that you want to allow access.
/ip firewall fi
add action=accept chain=forward comment="Allow Access" src-address=192.168.30.252



Conclusion

In this post, we have made a step-by-step tutorial on How MikroTik Firewall Blocks Websites Facebook and YouTube?.I hope you liked it and please do share it with your friends and follow our social media for more.

If you face any problems with the code or have any questions, please feel free to ask in the comments section or contact us.

Post a Comment

0 Comments