Hide Your Real Email Without the Hassle
We've all been there. You need to sign up for a service, but you don't fully trust it with your primary email. Maybe it's a one-time download, a sketchy-looking forum, or a shopping site you know will spam you. You could create a burner Gmail, but that's a whole process. Wouldn't it be nice to just make up a unique email on the spot that still forwards to your real inbox?
That's the exact itch that the hide-my-mail-cloudflare project scratches. It's a clever, self-hosted solution that turns your domain into an infinite supply of disposable email addresses.
What It Does
In short, this project is a Cloudflare Worker that acts as an email gateway. You point your domain's email (using Cloudflare Email Routing) to this worker. The worker then creates a rule: any email address at your domain (e.g., [email protected], [email protected]) will be caught, processed, and forwarded to your actual, private email address.
The magic is in the "any" part. You don't pre-create these addresses. You just invent them when you need them. Signing up for a newsletter? Use [email protected]. The first time a message is sent to that address, the system creates the forwarding rule on the fly.
Why It's Cool
The implementation is what makes this stand out. It's not a bulky app; it's a single, serverless function living on Cloudflare's edge network. This means it's cheap (likely free under the Workers free tier), fast, and requires no maintenance of a server.
It also gives you back control and insight. Since you're using your own domain, you can instantly identify who sold your data. Getting spam to [email protected]? You know exactly which retailer is to blame. You can then block that specific alias without affecting any other forwarded emails.
It’s a perfect example of using modern, serverless infrastructure to solve a common privacy problem with minimal code and maximum elegance.
How to Try It
You'll need a domain and a Cloudflare account (with your domain's nameservers pointed to Cloudflare).
- Fork or clone the repository: Head over to the hide-my-mail-cloudflare GitHub repo.
- Deploy the Worker: The README has detailed steps. You'll use Wrangler (Cloudflare's CLI tool) to deploy the JavaScript Worker.
- Configure Cloudflare Email Routing: In your Cloudflare dashboard, enable Email Routing for your domain and set the destination to your newly deployed Worker.
- Start inventing emails: That's it. Start using
[email protected]when you sign up for things. The first email sent to that alias will set up the forward.
Final Thoughts
As a developer, I love tools that are simple, effective, and leverage platforms intelligently. This isn't just a useful privacy hack; it's a great learning project for anyone wanting to see a practical, real-world use case for Cloudflare Workers and Email Routing. It solves a genuine problem with a clean, automated solution. If you've got a domain sitting around, setting this up is a weekend project that pays off in daily convenience and a bit more control over your digital identity.
Found this interesting? Follow @githubprojects for more tools and projects from the community.