<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Pmcc on Medium]]></title>
        <description><![CDATA[Stories by Pmcc on Medium]]></description>
        <link>https://medium.com/@19p1094mcc?source=rss-6ce5bac7bb54------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*07ViWsA5p73KgRnT</url>
            <title>Stories by Pmcc on Medium</title>
            <link>https://medium.com/@19p1094mcc?source=rss-6ce5bac7bb54------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:36:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@19p1094mcc/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MiniHole: A Website Blocker on a ESP8266]]></title>
            <link>https://medium.com/@19p1094mcc/minihole-a-website-blocker-on-a-esp8266-111182977dc4?source=rss-6ce5bac7bb54------2</link>
            <guid isPermaLink="false">https://medium.com/p/111182977dc4</guid>
            <category><![CDATA[esp8266-nodemcu]]></category>
            <category><![CDATA[dns-servers]]></category>
            <dc:creator><![CDATA[Pmcc]]></dc:creator>
            <pubDate>Thu, 26 Nov 2026 16:03:27 GMT</pubDate>
            <atom:updated>2026-11-26T16:09:47.155Z</atom:updated>
            <content:encoded><![CDATA[<h3>The idea</h3><p>I wanted to see whether a tiny microcontroller could act like a mini Pi-hole: a Wi-Fi network where certain websites simply don’t load. The ESP8266 can do it by creating its own hotspot and filtering DNS lookups for everyone who connects.</p><h3>How it works</h3><ol><li>The ESP8266 connects to my home Wi-Fi and also broadcasts its own hotspot.</li><li>NAPT (network address translation) lets it forward traffic between the two, so it behaves like a Wi-Fi repeater.</li><li>The ESP8266 tells every connected device to use <strong>itself</strong> as the DNS server.</li><li>Each time a device asks “what’s the address of this site?”, the ESP8266 checks a blocklist:</li></ol><ul><li><strong>Not blocked:</strong> it forwards the question to a real DNS server (1.1.1.1) and passes back the answer.</li><li><strong>Blocked:</strong> it replies 0.0.0.0, so the connection goes nowhere.</li></ul><p>Because this happens at the DNS level, it works for both browsers and apps, and for HTTPS sites, without decrypting any traffic.</p><h3>Hardware and tools</h3><ul><li>NodeMCU 1.0 (ESP-12E, ESP8266)</li></ul><h3>Problems I ran into</h3><ul><li><strong>Apps still worked after blocking the main domain.</strong> Apps use many domains. YouTube needed googlevideo.com, ytimg.com and youtubei.googleapis.com. Instagram needed cdninstagram.com and fbcdn.net. Logging both BLOCKED: and allowed: lookups in the Serial Monitor showed which names to add.</li><li><strong>Mobile data and cached content.</strong> Phones can quietly switch to mobile data, and apps show cached feeds, so I had to test with mobile data off and with fresh content.</li></ul><h3>What the logs showed</h3><p>Even an idle phone makes a constant stream of DNS requests: Apple services (Find My, App Store), Microsoft telemetry, and messaging check-ins. Running your own DNS server is a good way to see how chatty modern devices are.</p><h3>Ideas for next steps</h3><ul><li>A web page for adding and removing blocked sites from a phone, saved in LittleFS</li><li>Time-based rules using NTP (for example, block social media during study hours)</li><li>A “this site is blocked” page</li><li>Logging the most-requested domains</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=111182977dc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>