惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
Scott Helme
Scott Helme
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky
V
V2EX
腾讯CDC
博客园_首页
博客园 - 司徒正美
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
小众软件
小众软件
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
雷峰网
雷峰网
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
罗磊的独立博客
Recorded Future
Recorded Future
博客园 - 聂微东
O
OpenAI News
S
Secure Thoughts
Hacker News: Ask HN
Hacker News: Ask HN
S
Schneier on Security
Hacker News - Newest:
Hacker News - Newest: "LLM"
Y
Y Combinator Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Project Zero
Project Zero
宝玉的分享
宝玉的分享
K
Kaspersky official blog
N
Netflix TechBlog - Medium
T
The Exploit Database - CXSecurity.com
Google Online Security Blog
Google Online Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Webroot Blog
Webroot Blog
云风的 BLOG
云风的 BLOG
Simon Willison's Weblog
Simon Willison's Weblog
C
Check Point Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
L
LINUX DO - 热门话题
美团技术团队
L
Lohrmann on Cybersecurity

Latest news

LG G6 vs. LG G5: I compared the latest OLED TV models, and it's a surprisingly tough choice I saw the 'MacBook Pro for Linux users' for the first time, and it's a legit Windows threat I'm putting Motorola above Samsung when it comes to flip phones - and won't think twice I got an early look at ChatGPT Images 2.0, and it's impressive - with one exception I compared Thread, Zigbee, and Matter - here's the best smart home setup for you Scaling agentic AI demands a strong data foundation - 4 steps to take first I tested Surfshark's new Dausos VPN protocol - here's how it compares to WireGuard How to easily encrypt your files on an Android phone - for free I'm not giving up on DJI cameras yet - not when they can upset my GoPro like this The best website builders for small businesses in 2026: Expert tested and reviewed Why I'm recommending last year's phones over 2026 models - with one exception This powerful Gemini setting made my AI results way more personal and accurate After testing this HP laptop, I get why its 'boring' design is adored by business users The best TV antenna of 2026: Expert tested Your old iPad or Android tablet can be your new smart home panel - here's how Apple's original AirTag still tracks effectively, and you can get a 4-pack for its best price ever T-Mobile will give you an iPad for $99 when you sign up for a new line - here's how How to qualify for Apple's education discount - and get a $499 MacBook Neo for school T-Mobile will give you a Samsung Galaxy Watch 8 for free - how to get yours Prolonged AI use can be hazardous to your health and work: 4 ways to stay safe Verizon will give you a free iPad or Apple Watch with your next iPhone - how the deal works The best laptops of 2026: Expert tested and reviewed I hid 4 Bluetooth trackers (including AirTags) to test their reliability - here's how Android rivals compared I stopped using my iPhone's hotspot after testing this 5G router - and that won't change The best Kindles in 2026: Expert recommended Does Best Buy price match? Everything to know about matching prices online and in-store The best WordPress hosting services of 2026: Expert tested and reviewed The best Apple Watch of 2026: Expert tested and reviewed The best TV screen cleaners of 2026: Expert recommended The best 50-inch TVs of 2026: Expert tested I traded my Sonos Era 300 for Denon's new home speaker - and see no reason to go back AI-powered website builders have come a long way - here's your best option in 2026 Amazon just slashed $250 off the Google Pixel 10 - and a Prime subscription isn't required I found the apps slowing down my PC - how to kill the biggest memory hogs These companies are actually upskilling their workers for AI - here's how they do it Verizon will give you Meta Ray-Bans for free with this Fios Internet deal - how to get yours I tried the new Gemini app for Mac - it has one major advantage over the web version How Google's updated AI Mode will ease your tab clutter when you search Why this MagSafe battery pack is our readers' favorite model right now - especially at its price T-Mobile will give you a Google Pixel 10a for free - plus an extra gift OpenAI's Codex Desktop can run your computer now - and has its own browser Want to build a startup that gets acquired? This founder shares 5 proven tips Google to pay $135M settlement to Android phone users - how to claim your share if you qualify Want to stand out on LinkedIn? Try this career strategist's top 3 tips for strengthening your profile I've used Dell's new XPS 16 for a week, and it's the Windows laptop to beat in 2026 You can get 50% off YouTube Premium for 1 year right now - but the deal ends soon Tidal vs. Qobuz: I tried both hi-res streaming services, and they couldn't be more different This stroller turns into a carry on-suitcase, and I recommend it for traveling parents The best small business VoIP providers of 2026: Expert tested and reviewed Protect your devices with our pick for the best antivirus software, now over 60% off MacBook Neo vs. Surface: Why spiraling RAM prices are bruising Microsoft's PC business but not Apple's I tried Google's new desktop app for Windows, and I'll never search the old way again Microsoft's Windows 11 laptop deal for students comes with a $500 bonus - what's included You can buy an LG B5 OLED for $1,500 off at Best Buy - and it comes with a free 4K TV Why Zorin OS 18.1 is simply the best Linux distro - for anyone Why Netgear just got the first FCC router ban exemption in the US Microsoft's latest Windows update now confirms if your PC is Secure Boot-protected - how it works Can this $70 Linux app make up for the lack of Photoshop? I tried it to find out 'Like handing out the blueprint to a bank vault': Why AI led one company to abandon open source iPhone charging slowly? 6 quick fixes to try before blaming your battery Roku TV vs. Fire Stick: Why I'm looking beyond streaming resolution when comparing the two AI is getting better at your job, but you have time to adjust, according to MIT The best internal communication tools of 2026: Expert tested and reviewed Half of all US employees use AI at work now - and waste almost 8 hours a week doing it The latest Google Home update brings Gemini fixes that I'm actually excited to try again I've been subscribed to a data removal service a month now - what I wish I knew sooner You can use Linux 7.0 on these 7 distros today - here's what to expect How I share audio from my Android phone to multiple earbuds (and why it's a big deal) Why the Apple Watch's 20-minute calibration test is worth your time - especially if you're data curious I used the 'Plus Five' rule to fix my iPhone's slow wireless charging - here's how it works I spent two years testing wind power at home - here's why solar is still my preferred source How I boosted my portable solar panels' power by up to 30% - 11 expert-approved tips As an Android user, this MagSafe wallet is the clearest reason why Qi2 magnets shouldn't be ignored The best Zoom alternatives in 2026: Expert tested and reviewed KDE Linux is the purest form of Plasma I've used in months - but there's a catch LG C6 vs. LG C5: Why the 2025 model is still the smarter OLED TV model buy for me How I disabled 'fast startup' on my Windows 11 laptop to stop overnight battery drain 30 years later, I returned to Enlightenment Linux to test the Elive beta - and it's much better Here's my favorite email trick for cleaning up inbox clutter - automatically The $30 Google TV stick may be the budget Chromecast successor we've been waiting for The best AR and MR glasses in 2026: Expert tested and reviewed This handy electric screwdriver is now 50% off - here's where to snag the deal This Ryobi yard essentials bundle packs a free power tool - how to get yours After trying these boomless headphones in the office, I'm feeling hopeful for the future of work tech I used this EcoFlow battery to run my 3,000-sq-ft home in a blackout - here's how it kept my AC on Microsoft's Windows Insider Program is no longer a confusing mess Forget Shokz: I tried the Suunto Spark earbuds for a month, and they've sold me on air conduction iOS 26.4 brings essential upgrades to your iPhone - including a vital security fix YouTube Premium is getting a price increase in June - but you can save $32 with one change Your router may be vulnerable to Russian hackers, FBI warns: 5 steps to take now I walked 3,000 steps with my Apple Watch, Google Pixel, and Oura Ring - this tracker was most accurate I stopped guessing which AA batteries are dead - this charging station keeps them in check for me My favorite Android Auto find is these hidden shortcuts that are highly customizable AirDrop is coming to older Samsung phones - is yours supported? How to get it early I'm no longer using Google Photos as just a cloud storage - 5 tools that elevate the app The best data removal services of 2026: Expert tested and reviewed The best Samsung TVs of 2026: Expert tested and reviewed The best mobile scanning apps of 2026: Expert tested and reviewed The best HP laptops of 2026: Expert tested and reviewed After using Lenovo's new Yoga laptop, I'm wondering if Windows makers are running out of ideas
I programmed a $7 ESP32-S3 board to block all computer's web ads - and it took just minutes
Adrian Kingsley-Hughes · 2026-06-18 · via Latest news
No coding needed -- you're just loading existing code onto the ESP32-S3.

No coding needed. Just load existing code onto the ESP32-S3.

Adrian Kingsley-Hughes/ZDNET

Follow ZDNET: Add us as a preferred source on Google.


ZDNET's key takeaways

  • A cheap $7 board can turn its hand to ad blocking.
  • It works as a DNS sinkhole, stripping out ads before download.
  • Other options include using a Raspberry Pi and buying hardware.

They say that necessity is the mother of invention, and the skyrocketing prices of Raspberry Pi boards have definitely been the kick in the pants that I've needed to look at cheaper, perhaps also better-suited, alternatives. I mean, the Pi is a great board, but for a lot of applications I've used it for over the almost 15 years that they've been around, it's also been overkill.

The other day, I needed to put together an ad-block solution, not because I dislike ads, but simply because I was working with quite a limited bandwidth. I reflexively reached for a Raspberry Pi board, but stopped when I remembered how much they cost nowadays and put it back.

Also: I tested a Bluetooth tracker that leverages LoRa mesh networks to find things - and it's so accurate

I was going to use PiHole on the Pi, but then I remembered coming across an ad-block project that worked on an ESP32 board. And the good news is that you can pick up one of those boards for under $10.

ESP32-S3 (left) vs ESP32 (right)

ESP32-S3 (left) vs ESP32 (right).

Adrian Kingsley-Hughes/ZDNET

Introducing the ESP32-S3

There's a huge difference between a Raspberry Pi 5 and an ESP32 board (specifically the ESP32-S3 board). The Pi 5 is powered by a 2.4 GHz quad-core Arm Cortex-A76 64-bit chip, gigabytes of RAM, and the ability to use microSD or fast NVMe SSD storage, while the ESP32 makes use of a dual-core Tensilica Xtensa LX7 32-bit processor that can run at up to 240 MHz, 520 KB of RAM, and up to 16MB of flash storage. 

Also: I built my own Wi-Fi router with a Raspberry Pi for Starlink and solar control - here's how

A Pi 5 can use as much as 12 W of power (and that's before you hook up various HATs and such), while an ESP32 board uses milliwatts. 

For this project, I'm happy to go with the ESP32, but there are a few compromises that I'll have to live with -- more on those later.

What you need

First, you need an ESP32 board. Look for the ESP32-S3 with 8MB of PSRAM (there's a 4MB version too, but using this board will result in compromises) rather than the classic ESP32. The ESP32-S3 is faster and more efficient, and you need this power to run the ad-block software. The cheapest way to buy these boards is in a 3-pack for $20

When you get an ESP32-S3 board for the first time, it's normal to think, "Wow, this is tiny, there must be more to it," but there isn't. It really is a computer you can balance on a finger. 

Well, you will need a USB-C cable to transfer data and power the board. However, you don't even need a microSD card for the board to work.

Also: I installed a $17 solar panel onto my doorbell camera, and it's easily my best smart home investment

Talking of the software, you'll also need to download ESP32_AdBlocker, which does all the hard work. You'll also need the Arduino IDE utility to install the software onto the board. Installing the software is easy -- configure the Arduino IDE application to work with the ESP32 board, open the product in the application, connect the board to your PC, and click upload. 

Note that when you connect the ESP32-S3 board to your computer, it has two USB ports. You want the one marked as COM or USB/Native (looking down at the board with the ports at the bottom, this is the port on the right). Alternatively, try a different port.

ESP32-S3 (left) vs ESP32 (right)

My Arduino IDE settings.

Screenshot by Adrian Kingsley-Hughes/ZDNET

If you get into trouble, there's no end of help available. One of the biggest issues I find people run into is trying to connect the ESP32 to their computer using a charge-only USB-C cable. I also had to fiddle with the compile and board settings in the Arduino IDE software. I've added a screenshot below of the settings I used to get things working.  

And finally, if you need a case for the ESP32-S3 board, you have options. You can buy one3D print one, or do a MacGyver and wrap it in a bit of electrical tape or large-diameter shrink-wrap tubing (about 1.5 inches across). 

Setting up the board

OK, so you've loaded the software onto the ESP32. Now it's time for a first boot and to get the board set up. Your ESP32 board is now a network appliance.

On first boot, the ESP32 starts in Wi-Fi access point mode with an address that starts: ESP32_Adblocker_XXXXXXXXXXXX (where each X is an alphanumeric character). 

It lives.

Our board lives.

Screenshot by Adrian Kingsley-Hughes/ZDNET

Once you've connected to the Wi-Fi, go to 192.168.4.1 and add the Wi-Fi SSID and password for your router. After another reboot, it's time to specify the URL of the blocklist you want to use (you can find a massive repository of blocklists here), and then you're pretty much done with the board.

We're in! ESP32_Adblocker successfully installed

We're in. ESP32_Adblocker successfully installed.

Screenshot by Adrian Kingsley-Hughes/ZDNET

The only other thing to do is configure your devices to send DNS requests (more on this in a moment) to the ESP32 board. To do this, you need to take that earlier address -- 192.168.4.1 -- and use it as the DNS address. A good way to find out how to do this task is to check out CloudFlare's excellent documentation for the platforms (remember to set the DNS to your ESP32's address, not CloudFlare's 1.1.1.1 address).

But how does it work? 

When you type a URL or click a link, your browser needs to know where on the internet that web page lives. To find this information, your browser consults an online directory called a DNS server via DNS lookup (DNS stands for Domain Naming System). 

Think of DNS as a phone directory, but for server addresses. The web page, and all the components of that web page -- the images, any videos or sounds or animated under-construction GIFs, and, of course, the ads -- can all be at the same location or come from different servers scattered all around the world. The browser looks up the addresses of where all these parts of the webpage are stored to build the page that it shows you. 

Now, here's the clever bit. Because you now told your smartphone, PC, or router to ask the ESP32 board for DNS information (which is why you had to change the router's DNS setting for this approach to work), every DNS lookup that happens is filtered by that tiny ESP32 board first. 

Also: My 7 essential laptop-bag items after decades of working remotely

The ESP32_AdBlocker software holds a blocklist of millions of addresses for internet ads, and, put simply, every time the browser requests something that's in the blocklist, the software tells the browser that it can't be found by pointing it to the 0.0.0.0 DNS address, and the blocked ad never loads, saving you a bit of internet bandwidth. If the address is not on that list, the board passes that DNS lookup to a proper DNS server. 

What you've built is a DNS sinkhole for the majority of the ads that you see on the internet.

There are limitations. For example, the strategy doesn't work with YouTube ads because they're served from the same server and at the same address as the videos you want to watch, so blocking these ads would block the videos. The approach also doesn't work with newer IPv6 internet addresses. 

But this project still shows what's achievable with a tiny board costing under $10.

The ESP32-S3 in action filtering ads.

The ESP32-S3 in action, filtering ads.

Adrian Kingsley-Hughes/ZDNET

Not the only option

For the application I needed -- a temporary solution to work with a limited-bandwidth internet connection -- this approach works. And it was one of those interesting projects to play with. If I wanted a long-term solution, or I didn't want to put a speed bump on a fast internet pipe, a Raspberry Pi Zero 2 W running PiHole is a good solution. 

Also: I tested a $15 smart switch and found a coffee maker wasting $1,500 a year in electricity

But that approach already pushes the cost up to at least $15 for the bare board, plus a microSD card. Nothing that's going to demand a second mortgage, but it's a different level for sure. 

You could run PiHome on a totally separate computer, or in a virtual machine on a computer. Or buy an appliance that supports ad blocking out of the box. But what's the fun in that? Different horses for different courses. 

Featured