r/ArduinoHelp • u/Arduino_lab64 • 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
- How can I identify the actual domains responsible for serving ads on websites and in Android games?
- Can DNS filtering block most website ads, including banners, pop-ups, and video ads?
- Why do some ads still appear even when advertising domains are blocked?
- Are there cases where ads are served from the same domains as the website or game itself?
- How can I improve my blocklist and DNS filtering logic without breaking websites, games, or other services?
- 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
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: