Mikrotik website blocking (Youtube, Facebook etc)

Mikrotik website blocking (Youtube, Facebook etc)

Asalam o alikum Brothers/Sisters in this tutorial we will learn webiste blocking/ website filtering/layer 7 filtering in Mikrotik.

It is actually How we can block different access to different website like facebook, youtube in Mikrotik Router board.

The model i am configuring in this tutorial is RB 3011.

It’s really simple. we will use regular expression for layer 7 filtering .

A regular expression (regex or regexp for short) is a special text string for describing a search pattern.

After a regexp is matched for our defined policy (specific IP / IP pool) we will then drop the packet.

Let’s start.

1) Login to MIKROTIK using WINBOX

2) On left menu Select IP -> Firewall

3) Go to TAB “Layer 7 Protocols”

4) Add a new Rule , give it a name
and specify a Regexp
Ex: .(facebook.com)+.
.(youtube.com)+.

5) Now go to “Filter Rules”

6) Add a new Rule.

7) Under General Tab:
->Select Chain: Forward
->Src Address : IP address you want to block
You can also specify a pool.

8) Go to Advanced TAB:
->Select your created Regexp under “Layer 7
Protocols”

9) Now finally go to actions TAB:
-> Select drop.

For testing purpose i will block youtube and fb
on my PC (192.168.10.30)….

Don’t forget to watch video tutorial .

#mikrotik #mikrotikrouter #block #facebook #youtube

IT Funkaar

Leave a Reply

Your email address will not be published. Required fields are marked *