Back to browse
GitHub Repository

Obfuscate emails, phone numbers, and other sensitive data in PHP. Invisible to humans, hidden from bots until they interact.

3 starsPHP

My Approach to HTML Obfuscation

by rasso·Jul 7, 2026·1 point·0 comments

AI Analysis

MidCozy

Shadow DOM obfuscation when dozens of email protectors already exist.

Strengths
  • PHP 8.4's new DOM APIs enable clean server-side parsing
  • Custom elements reveal content only on user interaction
  • Works with AJAX, htmx, and dynamically loaded content
Weaknesses
  • Email obfuscation is a solved problem with many established tools
  • Shadow DOM approach doesn't fundamentally improve on existing techniques
Target Audience

PHP developers building public-facing sites

Similar To

Cloudflare Email Obfuscation · SpamSpan · reCAPTCHA Mailhide

Post Description

Hey HN!

After reading this article about email obfuscation [0] a few weeks ago, I build html-obfuscator. And I'm awfully proud of the result!

I know obfuscation is not new (haha)... but I think I found a very nice way to obfuscate content without disrupting the user experience (closed shadow root!).

I hope the demo [1] makes it clear enough how it works.

I'd love to get a few people to look at this and give me feedback. Negative is ok, maybe I learn something! ;)) And I'm also a sucker for GitHub stars. At least 10 would be amazing...

Cheers, Rasso

[0] https://spencermortensen.com/articles/email-obfuscation/

[1] https://html-obfuscator.rassohilber.com/

Similar Projects

Security●●Solid

JavaScript Obfuscator

Token budget obfuscation targeting LLMs when javascript-obfuscator exists.

Big BrainBold Bet
bootbloopers
103mo ago
AI/ML●●Solid

Righthand – Autonomous AI assistants with skills, goals, and a CLI

E2B-sandboxed AI employees with phone numbers in a crowded agent space.

Bold BetShip It
notanaiagent
2120d ago