Post #964830
2026-04-02 13:52 UTC
An interesting article¹ by Spencer Mortensen on obfuscating email addresses on web-pages, detailing how well each technique has worked.
While all the more advanced techniques had much higher blocking-success, I dislike how they rely on CSS or JavaScript which breaks in most of the simple text-mode browsers. For inline-text email addresses, the comment method
me@examp<!-- comment -->le.com
seemed to hit the sweet-spot of working in all browsers, yet effectively eliminating 98% of spamming attempts.
However, that doesn't appear to work in a mailto: link,
<a href="me@examp<!-- comment -->le.com">Contact me</a>
so it might make more sense to use the Entities method in that case:
<a href="mailto:me@example.com">Contact me</a>
⸻
¹ https://spencermortensen.com/articles/email-obfuscation/
Replies (3)
-
@reay@beige.party 2026-04-02 14:31
@gumnos @Binder @FirewallDragons
-
@tantramar@zeroes.ca 2026-04-02 14:35
@gumnos Using a form works 100% of the time, eliminates the game of whack-a-mole with spammers, and doesn’t require the user to have a configured email client (or remember their webmail login) if they’re using a shared computer (e.g. library PC).
-
@drscriptt@oldbytes.space 2026-04-03 04:28
@gumnos I’ve never bothered beyond (at) / (dot) and that’s mostly just to break automatic linkification.