Menu

1 / 2

A Few Dollars of Hardware That Blocks Ads for Your Whole Home: The ESP32 AdBlocker

DEV Community: opensource·doogee “doogeetop” top·2 days ago
#6uBsRAi6
#devtoopensource#devto#dev#esp32#board
Reading 0:00
15s threshold

I will be honest up front: I am not a hardware person. But I know a beautiful piece of thrift when I see one, and this is one — a whole-home ad blocker that runs on a chip costing about as much as a coffee.

The project is ESP32_AdBlocker by s60sc on GitHub:

https://github.com/s60sc/ESP32_adblocker

It has been around since 2021, is still maintained (version 3.7, 530+ stars), and it turns an ESP32 development board into a DNS sinkhole — the same trick a Pi-hole does, on a board a fraction of the size and price.

How it works

Every device in your home asks a DNS server "where is this domain?" before loading anything. Point that question at the ESP32 instead:

If the domain is on the blocklist (ads, trackers), the ESP32 answers 0.0.0.0 — nowhere. The ad never loads.

If it is a normal domain, the query is forwarded to a real DNS server and everything works as usual.

A blocklist lookup takes under 50 microseconds on an ESP32-S3.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.