Internet Bandaid   [RSS Feed]

Archive for March 26th, 2014

Use Javascript to Render Email After Page Load – Best Practice

without comments

I looked on the website’s about us page and i see that everyone’s email addresses are EXPOSED. In other words, I see bad things like <a href=””> in the view source.

This means that a spider/crawler can parse out everyone’s email addresses and spam them.

The better thing to do is something like

<a data-helloworld=”someone|||”>

Then use javascrpt after page load to convert that to a proper mailto link.

Spiders/crawlers generally won’t trigger javascript

Written by John Lai

March 26th, 2014 at 9:19 am

Posted in Uncategorized