Block specific URL - not the entire site

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

ie, block:
https://cdn.pixabay.com/photo/2015/04/23/22/00/tree-736885_960_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)

Maybe you can try

tls-host

, see more details here https://wiki.mikrotik.com/wiki/Manual:IP/Firewall/Filter

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