DEV Community

Discussion on: TIP: Never leave your email address raw in the mailto link! Here's what to do instead

Collapse
 
thalitadev profile image
Thalita G.

As noted in my article, this solution is meant for mailto links themselves, where you can't obscure your email with things like [AT]. That's when the next best solution is to encode your email when you insist to use a mailto link at all.

Solutions like this one are never going to solve everything due to security through obscurity, but it at least gets rid of the scraping bots that can't decode these entities.

Of course, a more effective solution would be not to use mailto links at all and obscure your email effectively as you said. However, the article was about when you do have a mailto link. :p

Collapse
 
val09865 profile image
val09865

or you could hide the email link behind a captcha check which would do a better job at fighting bots