BerriAI / litellm
github.com·3d ago
TL;DR
A low-cost ad-blocker was developed using the ESP32-C3 microcontroller, capable of blocking ads for 537,000 domains through a DNS sinkhole and a web dashboard interface.
✦ Why It Matters
Consider building your own ad-blocker with the ESP32-C3 to enhance your network's privacy today.
Key Takeaways
How It Works
The esp32-c3-adblock uses a unique method of storing domain names as 40-bit hashes in flash memory instead of loading them into RAM. This allows for efficient binary searching of the hashes, which significantly reduces memory usage and lookup times.
The design accommodates a large number of domains while maintaining low collision rates, making it an effective solution for DNS ad-blocking.