Mailblocks phone notification blocker
By Ben Everard. Posted
This article was originally published as part of HackSpace magazine, which has since been incorporated into Raspberry Pi Official Magazine.
Guy Dupont has a problem: he keeps making brilliant creations that pique the interest of the internet. Every time he makes something interesting on the internet, his phone starts blowing up with notifications. What to do?
Well, in a bit of a meta-twist, he decided to make yet another brilliant device, only this time, one that would block notifications until such a time as he’s ready for them. This is the Mailblocks. It’s based on the old-fashioned mailboxes of North America, in the days when you’d have to get up and move your body to receive paper messages once a day from the outside world, and it means that Guy’s Android phone doesn’t bug him with updates unless he chooses to accept them.
Guy uses a Raspberry Pi acting as a Wi-Fi router on his home network, running a custom DNS server that looks for IP addresses associated with push notifications, and redirects the DNS requests to nonsense IP addresses.

That’s the blocking part. So far, so good: now, in order to pick up notifications, you need to put it into the mailbox. Inside the mailbox is a mechanical switch that closes when the phone is inserted. The switch is connected to a Feather S3 board, from Unexpected Maker, that tells the Raspberry Pi to stop the monkey business with DNS. The Wi-Fi network reboots and, when the phone looks again for the Google servers, all the previously blocked notifications come through. Congratulations: you are now in charge of your phone, rather than the other way around.
Ben is the Editor of HackSpace magazine. When not wrangling words, he enjoys cycling, gardening, and attempting to identify wild mushrooms.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Cyber Pet Tumbler
This virtual pet can be thrown around its plastic case. Rob Zwetsloot tries to keep it alive
Read more →
Kiwi+ USB review
An upgraded Kiwi KVM brings USB device sharing between machines. Rob Zwetsloot makes the switch
Read more →
Set Marvin Free
Do you dare free a demon possessing a stuffed animal?
Read more →