Do you avoid clear text email addresses in web pages?

Updated by Brady Stroud [SSW] 6 months ago. See history

123
<introEmbed body={<> Clear text email addresses in web pages are very dangerous because it gives spam sender a chance to pick up your email address, which produces a lot of spam/traffic to your mail server, this will cost you money and time to fix. Never put clear text email addresses on web pages. </>} />
<!--SSW Code Auditor - Ignore next line(HTML)-->
<a href="mailto:test@ssw.com.au">Contact Us</a>

❌ Figure: Bad - Using a plain email address that it will be crawled and made use of easily

<a href="javascript:sendEmail('74657374407373772e636f6d2e6175')" onmouseover="javascript:displayStatus('74657374407373772e636f6d2e6175');return true;" onmouseout="javascript:clearStatus(); return true;">Contact Us</a>

✅ Figure: Good - Using an encoded email address

Tip: If you use Wordpress, use the Email Encoder Bundle plugin to help you encode email addresses easily.

We have a program called SSW CodeAuditor to check for this rule.

Acknowledgements

Adam Cogan
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star