droideka
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])
Your HTML
Here is my email: some@email.com Here is some more html stuff
In node run it through droideka
html = ;
Here is the output
Here is my email: You must enable JavaScript to see the email. Here is some more html stuff
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)
droideka.js_code_decode
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>';
License
MIT