
Stop giving your real email to websites. Here's what I built with Laravel and cPanel API.
One email address per service. Kill the forwarding when spam starts. Your real inbox stays invisible. All from your phone. TL;DR Did you know cPanel has a full REST API? I didn't either. I used it to build a Laravel PWA that lets me create a disposable email address in 10 seconds — right while filling out a signup form on my phone. The idea: every service gets its own address ( amazon_xxx@mydomain.com , netflix_xxx@mydomain.com ...). If it starts spamming, I cut the forwarding in one click. My real inbox is never exposed. In this post I'll walk through the architecture decisions, the SOLID patterns I used, and how I made the whole thing testable without a single real HTTP call. The Problem You sign up for a new service, hand over your email, and a few weeks later the spam starts. Your address leaked, got sold, or the service got breached. The usual workarounds aren't great: Gmail +alias ( user+amazon@gmail.com ) still exposes your real address — anyone can reverse-engineer it. Protonma
Continue reading on Dev.to Tutorial
Opens in a new tab


