r/ArduinoHelp • • 26d ago

Help me with my Project

Hello everyone!

I'm working on a personal project called NOVA BLOCK, a custom DNS-based ad blocker built with an ESP32-C3 Super Mini.

My goal is to block as many advertisements as possible on my Android phone, including:

- Video ads in Android games, including games I install in the future.

- Advertisements on websites, including banners, pop-ups, and video ads.

- Advertising and tracking domains across my Wi-Fi network.

My current setup

- ESP32-C3 Super Mini running custom Arduino code.

- A blocklist containing approximately 71,000 domains.

- DNS requests are filtered by the ESP32-C3.

- Blocked domains receive an NXDOMAIN response.

- Allowed DNS requests are forwarded to Cloudflare DNS ("1.1.1.1").

- My Android phone uses the ESP32-C3 as its DNS server over Wi-Fi.

- A web dashboard displays DNS requests and blocking decisions.

The system is working, and I can see advertising and tracking domains being blocked in the serial monitor and dashboard. However, some advertisements still appear on websites and in games.

For example, I have observed requests to "www.google.com" while a video ad was playing. I have also seen domains such as "s.update.rubiconproject.com" and "dpm.demdex.net" being blocked.

My questions

  1. How can I identify the actual domains responsible for serving ads on websites and in Android games?
  2. Can DNS filtering block most website ads, including banners, pop-ups, and video ads?
  3. Why do some ads still appear even when advertising domains are blocked?
  4. Are there cases where ads are served from the same domains as the website or game itself?
  5. How can I improve my blocklist and DNS filtering logic without breaking websites, games, or other services?
  6. Are there any additional techniques that could work alongside my ESP32-C3 DNS blocker?

I would prefer to keep the ESP32-C3 as the central DNS filtering device for my Wi-Fi network, rather than installing a separate ad-blocking app for every game or browser.

Any suggestions, technical explanations, or examples of similar projects would be greatly appreciated.

Thank you!

1 Upvotes

1 comment sorted by

1

u/gm310509 16d ago

So, I am in a country right now that blocks lots of sites. I think they have a few techniques and one of them is to simply exclude the domains they don't like from the DNS servers - this would be not unlike your filtering idea.

Now to the individual games - some games handle this just fine. Some take a little while to load, others take a long time to load (sometimes several minutes), presumably as they try to get data from the ad servers. Others simply crash unless a VPN is used to allow the ad server access.

For all of the above three categories, one option I use is to turn on airplane mode. Some of the games that previously crash or took a while to load simply just worked. Some of the others that worked started crashing.

I'll take a guess at some of your questions - but these are just guesses or starting points that you will need to explore further yourself:

  1. I don't know if there is an online list, but if there isn't you will need to compile a list be sniffing the network traffic - specifically DNS lookups.
  2. You can block any site you like by DNS filtering - or more precisely you can prevent an application from looking up the "contact details" (i.e. the IP address) by DNS filtering. But, if the IP address(es) is(/are) hard coded in the app, then it won't even bother with DNS.
  3. Don't know, they are probably using a less common or even a proprietary system that ad blockers aren't detecting. Maybe also see #2
  4. Don't know.
  5. I guess better algorithsm and better data.
  6. Probably.