Mikrotik : How to Block Facebook – Youtube and Other sites using L7 (Layer7)
Below i will show you how to block facebook and youtube sites using Mikrotik L7 Protocols (Layer 7). here i use RouterBoardOS RB1100.
STEP 1:
you have to create new Regexp rule at Layer7 Protocols by Press , and name it as “DENIED” (withoue quote), see details below:
you have to create new Regexp rule at Layer7 Protocols by Press , and name it as “DENIED” (withoue quote), see details below:
You can Copy & Paste the code above at below:
^.+(facebook.com|youtube).*$
STEP 2:
Now create Filter Rules, as follow:
At General Tabs for Chain, Please Choose : Foward |
At Advanced tabs, select ‘DENIED’ (rule that you have create at step 1) for Layer7 Protocols |
Choose Action ‘DROP’ |
And At last, your Filter rule to block facebook and youtube should have effected to your network.
this can be see from the filter rule you have created, it will catch the bytes for denied sites in your network.
Comments
It works but problem is URL like # http://codingtips.itwebsols.com/servers/mikrotik-how-to-block-facebook-youtube-and-other-sites-using-l7-layer7/ # which contains facebook and youtube is also block.
I want to block only facebook not url contains facebook.. If any sugestion ?
Regards Rabiul
Give full facebook url i.e. http://www.facebook.com to block it.
if i trying to block anther site like miniclip yahoo. and etc how ?
\
You may replace facebook or yahoo with your required site you want to block.
help me ?
i can block all ip users but i can’t by one
how to control one user by ip address
I can do it with web proxy and it worked correctly just for http://www.fb.com |
What should I do for https://www.fb.com ?
because it does not work for any httpS protocol.
Just as follow:^.+(facebook.com).*$
What if i want to block multiple (10 websites) and allow 2 user to access those. what is the configuration….?
very help full content thnx for sharing see more http://www.mikrotikroutersetup.blogspot.com
Hi, Can you kindly let me know your email or skype? I would like to ask your relate to Microtik.
Thank you so much beforehand.
yes it works but it create some problems also. in some browser it block google also as i remove layer 7 all sites working properly. please suggest wat to do?
see more http://mikrotikroutersetup.blogspot.com
please give me details how to block youtube only and the steps
Please Cloud You Help me!!!
Hi Mr. I’m has problem with Mikro tik Router. I am don’t want the client’s play game online in facebook, but client’s can open facebook normally. And I wanna block game online in facebook?
How to be configuration block game online in facebook?
Thank You!!
Sokunthearo
I have configured like above but some of my users are still accessing facebook. How can I fully stop facebook?
above steps successfully blocked the computer from browsing facebook. But android devise connected could still browse facebook from facebook application. Any suggestion on this ?
just tell me how to block sites like utube anda other tolent on mikrotik router
I have done everything what you said, but it’s not working. I am trying to block facebook and youtube. What can be the problem? Thanks
pls i need help i tried d above steps but still my clients has access to facebook pls wt could be wrong
tnx guys
How to block a website in time based manner
Dear
please help to block facebook user-profile with sample address: http://www.facebook.com/xyz in mikrotik. Can you guy help me to block it in mikrotik? Thank and Best Regards,
Facebook.com blocked but youtube still worki. can you advice what to do??
Write youtube.com full and try
Good blog for the new MikroTik user who want to set up ISP bisness.
-Thank You