I want to block youtube.com. I use mikrotik. I can block youtube with Layer7 protocols with this regexp : ^.*(youtube.com).*$
but if I apply this filter, I also can not access google drive. Can I block youtube but still can access to google drive?
I want to block youtube.com. I use mikrotik. I can block youtube with Layer7 protocols with this regexp : ^.*(youtube.com).*$
but if I apply this filter, I also can not access google drive. Can I block youtube but still can access to google drive?
if you use router as main dns server for you lan just rewrite youtube addresses
/ip dns static add regexp="youtube.com*" address=127.0.0.1
/ip dns static add regexp="youtu.be*" address=127.0.0.1
Finally I can block by this filter
^.+(googlevideo.com|videoplayback).*$
User still can access youtube.com but the video will not loaded