Block add on router level

Recently site I’ve being visiting for some time started using some scripts to check if adblock is enabled as an extension in browser. So I ask myself (an forum now) - is it possible to block ad on router level and as a result - remove adblock from browser?
Is this package could be helpful (2-3 years old commits :confused: )? One more solution. Any experience?
Thanks forward!

Whilst not on the router as such. I have a VM on my LAN (can run on Pi as well) running Pi-Hole. It’s a great ad-blocker at DNS level;
https://pi-hole.net/

If I understand correctly, this requires installing virtual machine on router? I’ve not found RouterOS in supported OS list.

I’m not implying a virtual on your router. I’m speaking more generally. Although this won’t be built in part of your router, the pi-hole is a very good way of ad blocking with a minimal addition.

Ok, is there a guide for installing at RouterOS?

Pi-Hole doesn’t run on RouterOS.