fight back against email scrapers
What it does
- finds all
<a href="mailto:...email addresses in your html
- encrypts them
- appends some JS to your html that decrypts them 1/2 second after the page loads
How to use it
var droideka = ;
html = droideka(html[, seed])
Here is my email:firstname.lastname@example.orgHere is some more html stuff
In node run it through droideka
html = ;
Here is the output
Take that spammers!
seed can be any string, i.e. your package.json's version string.
encoded = droideka.encode(text[, seed])
Lightly encrypt some text. (not cryptographically secure)
A string of JS code that creates a local function
d that can be used for decoding.
haml += '<script>';html += droidekajs_code_decode;//insert the decoding functionhtml += 'var email = d(' + JSON + ');';//call ithtml += '</script>';