ESP32 Ad-Blocking Dongle Fits 537,000 Domains in 50KB of RAM

A $5 microcontroller demonstrates efficient DNS filtering at scale using compression techniques that reduce memory footprint by 99%.

Abstract illustration representing data compression and efficient memory use
AI-generated illustration · Sylvaris

Compression Achievement

A developer has successfully compressed over half a million ad-blocking domain entries into approximately 50KB of RAM on an ESP32 microcontroller. The firmware can respond to blocked DNS lookups in roughly 10 milliseconds, making it practical for real-time network filtering.

The project demonstrates that sophisticated ad-blocking can run on inexpensive hardware costing around $5. Traditional ad-blocking solutions typically require significantly more memory and processing power.

Technical Implementation

The ESP32-based device functions as a DNS filter, intercepting domain lookups and blocking requests to known advertising and tracking domains. The extreme compression allows the entire blocklist to fit within the microcontroller's limited RAM while maintaining fast lookup speeds.

This approach represents a hardware-based alternative to software ad-blockers running on computers or routers. The low cost and minimal power requirements make it suitable for always-on network filtering.

sources
more in Hardware & Devices
Apple developing 'Restricted Mode' for financed iPhones with missed payments Apple may gain unprecedented control over hardware already in users' hands, locking access to apps if device financing payments fall behind. Samsung announces Galaxy Z Fold 8 and Z Flip 8 foldables, available August 7 Samsung's latest foldable lineup introduces design refinements and AI features but targets new buyers rather than previous-generation owners. LG monitors auto-install software on Windows PCs via driver updates, including McAfee advertising Hardware vendors using Windows Update to silently install applications raises questions about driver delivery boundaries and user consent.