Hosts File and doubleclick.net

We modified our hosts file to send traffic from doubleclick.net and all of its subdomains to 0.0.0.0 or 127.0.0.1. This has no effect. However, other domains are successfully blocked in this way (in particular, those annoying animated gif ads). The exception is doubleclick.net. Any idea why?

Mac Studio (2022)

Posted on May 27, 2023 10:39 AM

Reply
4 replies

May 27, 2023 12:00 PM in response to Al Hatch

Interesting that you are relying on using the Hosts file for this purpose as you may be better served by using something like Pi-hole or AdGuard. Both of these have the advantage of supporting multiple LAN clients without having to modify each of their respective Hosts file.


To block all doubleclick domains/subdomains, I would just create and employ a regex filter.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Hosts File and doubleclick.net

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.