2 ms·
They most likely use the /etc/hosts file or run a local DNS server that redirects all ad server URLs to 127.0.0.1. If you block ads this way and run a little we
by djsumdog 10y ago
They most likely use the /etc/hosts file or run a local DNS server that redirects all ad server URLs to 127.0.0.1. If you block ads this way and run a little web server locally, you can also log all the ad requests and see some of the information they're passing around.
Some people also display little random images from that web server so they can see where the ads would have been on the page they're browsing.
If you don't mind ads being served by the site owners, you'll also be able to see these ads. If ads running on the same server this bothers you, you usually can't block them via DNS and so this is a limitation over something like uBlock Origin which can have rules for dom IDs on a page.