MikroTik Block Website (Facebook, YouTube and Other Sites)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. MikroTik Firewall basic concept such as what is MikroTik Firewall, what is MikroTik Firewall Rule, how to implement MikroTik Firewall Rule etc. was discussed in my previous article. If you feel that you need the basic concept of MikroTik Firewall, feel free to spend time to study that article. In this article, I am only going to show how to block unwanted websites using MikroTik Firewall Rules. Show
How MikroTik Firewall Blocks WebsitesMikroTik Firewall blocks website using Filter Rule. A MikroTik Filter Rule has two parts.
If conditional part of a Filter Rule is matched, MikroTik Firewall will drop that connection. So, any user cannot access that website through MikroTik Router. Why Layer7 ProtocolMikroTik Firewall is capable to block any website with not only source address or destination address but also Layer7 Protocol. Layer7 Protocol uses Perl Regex (Regular Expression) to match any keyword in URL. If matched is occurred, action is taken by the Filter Rule that uses this Layer7 Protocol. As we want to block any website providing keyword such as Facebook, YouTube etc. we will create a Layer7 Protocol with Regex and then we will use this Layer7 Protocol in our Filter Rule. Block Facebook, YouTube with MikroTik Filter RuleNow we will create Filter Rule that will block websites like Facebook, YouTube or any other website that you want. Complete process to create a Filter Rule can be divided into two steps.
Step 1: Creating Layer7 Protocol to Select Desired WebsiteBefore creating Filter Rule, we need to create Layer7 Protocol with Regex because this Layer7 Protocol will be used by Filter Rule to match any keyword in URL. The following process will show how to create Layer7 Protocol with Regex.
We have created our Layer7 Protocols which will be used in Filter Rule to block our desired sites. Now we will create our Firewall Filter Rule. Step 2: Creating Filter Rule to Block Selected Website with Layer7 ProtocolAfter creating Layer7 Protocol, we will now create Filter Rule that will block our desired website. The following steps will show how to create a Filter Rule to block any website.
Filter Rule to block website has been created. The above rule will block all the users to access our desired website. But sometimes you may need to access this website for a specific user. In this case, you have to create another Filter Rule where user’s IP address has to provide in source address and the Filter action will be accept. How to Allow a Specific User to a Blocked WebsiteThe above Filter Rule that
we have created will block all users in your LAN. But sometimes you may have some specific users who need to access your blocked website such as Facebook, YouTube etc. The following steps will show you how to give access a specific user to your blocked website.
Note: You must place allowed rule before dropped rule. Otherwise, allowed user will go under dropped rule. So, he/she cannot access to desired website. Allow IP to Blocked WebsitesI hope, you will be able to block any unwanted website using layer7 protocol and MikroTik Firewall filter rule if you follow the above steps properly. However, if you face any confusion to follow above steps, feel free to watch my video about MikroTik Block Website (facebook, youtube etc). I hope, it will reduce your any confusion.
How to block websites (Facebook, YouTube etc.) with MikroTik Firewall Rule and Layer7 Protocol has been discussed in this article. I hope you are now able to block any website or can give access to any user to access any blocked website easily. However, if you face any problem to block any website, feel free to discuss in comment or contact with me from Contact page. I will try my best to stay with you. Why not a Cup of COFFEE if the solution? block youtube mikrotik, how to block porn sites, how to block pornography, layer 7 firewall, mikrotik block facebook, mikrotik block url, mikrotik block websites by url, mikrotik facebook block, mikrotik how to block website, mikrotik layer 7 block url, mikrotik web filter, web filtering mikrotik ABU SAYEEDI am a system administrator and like to share knowledge that I am learning from my daily experience. I usually work on MikroTik, Redhat/CentOS Linux, Windows Server, physical server and storage, virtual technology and other system related topics. Follow Me: Facebook, Twitter and Linkedin. Your name can also be listed here. Have an IT topic? Submit it here to become a System Zone author. What is IP address for Facebook to block?If you want to block access to Facebook from your home network, restrict these entire IP ranges: 66.220. 144.0 – 66.220. 159.255.
How do I block Youtube on Facebook router?Here are the steps:. Open your browser and enter your router's IP address. ... . Next, enter your admin username and password to access your router's settings.. Look for menu options containing keywords such as 'URL Filters', 'blocked websites' and more.. Add 'youtube.com' to your list of restricted addresses.. |