If you are managing a network and you would like to filter website domain in MikroTik router (such as Facebook, Youtube, Twitter, or other social media), it is possible to set up the configurations by following the steps below:
Step 1: add the website name to the list and then take the action to accept or drop the URL. To perform this, go to
IP> Firewall > “layer7 protocols”.
Step 2: Click on the plus icon. In the opened small window, type a name for the website domain and in the Regexp box type the domain expression like ^.+(yourdomain).*$.
Step 3: After adding the sites to the list, you should grant the URLs to have access or not. To do this, return to the first tab “filter rules” and click on “+” icon.
Step 4: Select chain method “forward” and let source address and destination address empty as we want to do this rule for all users connected to the network. Select 6(TCP) from the “protocol” drop-down list and enter 80 and 443 into the port field. Note that you should separate port numbers with a comma(,).
Step 5: Go to the Advanced tab and select the name of the URL defined in step 2 from the “layer7 protocol” field.
Step 6: Go to the action tab and select action type from the “action” field. Select “accept” to allow access to the URL and select “Drop” to deny access to the URL.
Conclusion
With this tutorial, you can easily block websites in Mikrotik, or allow website domains to be accessed on your network. MikroTik Router has many utilities to configure and manage the network, in this article you have found how to block websites in MikroTik router. for example with this tutorial, you can block youtube on the MikroTik server.
People are also reading:
I’m Oliver k. I have MS degree in Computer Engineering. For nearly 5 years that I have been working on web programing and also in last 2 years I have worked on windows and Linux VPS. This is my honor to share my experiences with a new community.