Streaming live at 10am (PST)

Email spam protection

Can someone explain step by step on how to use this JS method in Webflow in order to protect email addresses against spam? (The script was recommended in another thread which is closed for discussion.)

http://jsfiddle.net/UL2Rm/

In particular I would like to know how to deal with the html part of the code:

<a class="js-email" data-user="bob" data-server="gmail.com">secret email</a>

Just paste the JS code in Site Settings > Custom Code > Footer Code, in-between script tags, give the link element a class js-email then add two custom data attributes to it.


Also, feel free to contact me for further code help and/or customization of third-party plugins

3 Likes

Great thanks.

Just to clarify, the two data attributes need to be added as shown in the attached screenshots?

1 Like

Hey guys, do you think this works as an obfuscator? I don’t know much about it, trying to figure it out, but when I use this method, the assembled e-mail address is still visible in the code: