Email Hide
Because stopping spam is not impossible
Whoever needs to publish their email (or any link to a public page, for all that matters) on their personal website knows what's going to happen. SPAM.
A lot of it.
Webcrawlers constantly roam the web, hoping to find some new mails and new links to reap in order to be sold to spammers.
It looks like nobody is ever safe.
Luckily, though, that's not true.
In order to save loading time and processing speed to increase their malicious potential, webcrawlers don't load javscript files.
To exploit this flaw in our advance, we can hide the emails in a separate script made specifically to inject some text in the DOM once the page is loaded.
So this program generates a .js script hiding all the sensible information with repeated Base64 encoding and will keep you safe from spambots.
In order to use this program, you have to enter (in the form below):
- The email (or the link) that you want to hide
- A custom label for the container (this text will be displayed)
- The element that will contain the clear email (using CSS selectors)
- Whether or not you want to add a href="mailto:" to your container. In this case, the container must be an HTML link (defined with an <a> tag)
- How many Base64 iterations you want to hide your email behind (the more the better, although I'm not sure more than once is necessary)
- Whether or not you want to wait for the page to completely load (recommended)
- Whether or not you want to hide variables names (recommended)
- Whether or not you want to use an obfuscator (provided by JavaScriptObfuscator).
Keep in mind that this will increase the script size by up to 200% - Whether or not you want to strip newlines
The generated will then be shown below and you will be able to download it. Just incorporate it inside your web page (either inline or in a external script) and say no to spammers!
Start by inserting your email and the CSS selector for the container
Obviously, no data is stored in here. I will not sell your email address to spammers, I promise.
Made by Lorenzo Rossi | GitHub repo here