Download Email Protector
Note: Putting Email Protector into your webpage requires a small amount of knowledge of html. If you've never looked at the page source of a website, or edited an html file with a simple text-editor, then it may be helpful for you to first visit this site to get a basic understanding of what goes on behind the scenes of your web-browser's window.
First, right-click and save as emailProtector.js
This file stores the script that does all the decryption work when a user clicks one of your protected email links. This file must be located in the same directory as your html document(s) with the links you wish to protect.
Next, you need to follow the below steps to encrypt your email address links. At the end, you will be provided with some text and protected links that you should copy and paste into your html document. If you ever want to add or change your protected email links, you can simply come back to this page and use the form below to generate more protected links.
Make a key:
First you need to select 2 prime numbers that will make up the encryption/decryption key. They must be different numbers, and their product, N, must be greater than 255.
Enter your Email Address(es):
If you want to protect more than one address, just put each one on a separate line.
Note to the paranoid: I need your email address in order for the JavaScript to encrypt it. In no way is your email address stored or given away. All the calculations are run on your computer, not the server. Once it's been encrypted, the address is forgotten, so don't worry about me giving it out to spammers or something evil like that.
Subject Line (optional)
A lot of people have requested this, so here it is. Anything you put there will automatically be put into the subject line when somebody clicks on your "Mail Me" link. If you don't want to do that, just leave this field blank. If you do type something there, please only use letters, numbers, and spaces in the subject line. Single quotes are ok too, but not double quotes. And question marks are sure to mess things up.
Encrypt It
Click the button, and you're almost done!
The Technical Stuff:
N: | P: | |||
E: | Q: | |||
C: | D: |
In case you wanted to know, N is equal to P*Q. N, the public key, only has 2 possible factors other than itself and 1, so finding out P and Q from N can take a long time, depending on how large N is. P and Q are private keys, which are needed to break the encryption. E is an exponent used in creating the encrypted string C, and in creating the decryption key, D.
Test Decryption:
Just to make sure everything worked out all right. If not, contact me or try changing the prime numbers.
Encrypted: | |
Decrypted: |
Generate the HTML:
Now just click this last button to get the HTML code and instructions. I suggest copying and pasting all the text into an empty text document so that you can look at the examples before pasting it into your webpage's html source. You can replace the stuff between the anchor tags to be an image or whatever. (Note: To make sure you get all of the text, right-click and use select all.
Remember to have emailProtector.js saved in the same directory as your html document!
Enjoy
Now your email address should be safe from SpamBots (computer programs that crawl the net looking for email addresses). Most SpamBots look for the give-away 'mailto:blah@blah.com' link, and more complicated ones look for '@' symbols. With this script in your page, there's not a single 'mailto' or '@'. In addition, your email address is only decrypted during a user-generated mouse-click event. As far as the bots are concerned, it's just a bunch of meaningless numbers. This should help keep your email address off of future bulk email lists.