1

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?

David L
  • 703
  • 6
  • 22
Julius Prayogo
  • 133
  • 3
  • 12

2 Answers2

1

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 
dash1121
  • 101
  • 4
0

Finally I can block by this filter

 ^.+(googlevideo.com|videoplayback).*$

User still can access youtube.com but the video will not loaded

Julius Prayogo
  • 133
  • 3
  • 12