Here I am not going to show you to write the regular expression for different different websites.
This blog will help you to take the over view to write the regular expression when there is a challenge to block any websites.
Lets consider , I am going to block the youtube.com in my complete network .
This regular expression will help you to block any of the websites you want .So keep in your mind how to write the regular expression .
lets go to IP>Firewall>Layer 7 protocols
/ip/ip firewall layer7-protocol
add name="Block_youtube" regexp="^.+(youtube.com).*$"
Step 2 create the firewall rule to drop the traffic of Youtube.com
/ip firewall filter
add action=drop chain=forward disabled=yes dst-port=80,443 layer7-protocol=\
"Block_youtube" protocol=tcp
Same as you can make the rules of any websites and you can the write the appropriate regular expression in this way .
This blog will help you to take the over view to write the regular expression when there is a challenge to block any websites.
Lets consider , I am going to block the youtube.com in my complete network .
This regular expression will help you to block any of the websites you want .So keep in your mind how to write the regular expression .
lets go to IP>Firewall>Layer 7 protocols
/ip/ip firewall layer7-protocol
add name="Block_youtube" regexp="^.+(youtube.com).*$"
Step 2 create the firewall rule to drop the traffic of Youtube.com
/ip firewall filter
add action=drop chain=forward disabled=yes dst-port=80,443 layer7-protocol=\
"Block_youtube" protocol=tcp
Same as you can make the rules of any websites and you can the write the appropriate regular expression in this way .
No comments:
Post a Comment