Community discussions

MikroTik App
 
luisfmolina
just joined
Topic Author
Posts: 3
Joined: Tue Sep 10, 2019 10:11 pm

Block specific URL - not the entire site

Fri Oct 25, 2019 5:33 am

Hi, please how can I block a specific URL and not the entire website?

ie, block:
https://cdn.pixabay.com/photo/2015/04/2 ... 60_720.jpg

But permit:
https://cdn.pixabay.com

How can I do this with Regexp rules? Or is there a better way to do it? (Need to block +10.000 specific URLs)
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: Block specific URL - not the entire site

Fri Oct 25, 2019 3:44 pm

Maybe you can try
tls-host
, see more details here https://wiki.mikrotik.com/wiki/Manual:I ... all/Filter
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: Block specific URL - not the entire site

Fri Oct 25, 2019 4:15 pm

You can't. With tls-host, you can match only cdn.pixabay.com, the rest is encrypted.