My email address isn’t in this website’s code
On this website you can see my email address in the contact section. But if you open the page’s source code and search for it, you won’t find it.
That’s on purpose. Programs crawl the web all day, collecting email addresses for spam lists. They read a page’s code, not what’s shown on the screen. So the code never contains my address.
What’s actually in the page
<span class="mail" data-u="ih" data-d="ma.lsirun">
The address is split into two halves, each written backwards, with no @ anywhere. In the link you see, even the @ and the dot are drawn in by the page’s styling. To a spam robot, this is just noise.
What happens when you reach for it
The moment a real person moves the mouse over it, taps it or reaches it with the Tab key, a few lines of JavaScript turn the halves around and build the real link. Fake clicks sent by a program don’t count. Only a real touch or mouse does.
Is it unbreakable? No. A determined person can still get it. But I’m not hiding from determined people. I’m hiding from spam robots that collect thousands of addresses at once, and they don’t stop to think.
Note to future me: for small things, good security mostly means not being the easiest target.
It’s also why this site has no contact form: one less thing for robots to fill in. And if you wonder why my address ends in nurisl.am, that’s its own small story.