![]() |
|||
|
|||||||||||
![]() |
![]() |
![]() |
|
Anti Spambot email links
|
|
If you have your own web page you could be leading the spammers right to your door, or email address without even knowing it. You see spammers have bots that scour the internet looking at web pages. They search through the code for web pages and grab email addresses they find and add them to their spammer database. So, how to you keep them from getting your email address? You could just not have a link to your email address on your web page, but then people would not be able to contact you. There is a solution, follow along as I show you how to help keep your email address from the spamers. The way we are going to do this is with Javascript, don't worry, you don't have to become a programmer. It's very easy, just follow the steps below. There are two ways that you can do this, the first way is easier if you only have on page you want to add your email address two. The other way is better if you have many web pages that you want to add your email address to. A few notes - There are four variables in this script, three you have to set, one is optional. You must set the name variable, your email name (john_doe of john_doe@aol.com), change it from "yourname" to your actual email name. You must set domain to your domain (aol of john_doe@aol.com), change it from yourdomain. And extension (com of john_doe@aol.com), change it from yourextension. There is one more variable that can be changed if you like, it is called description and has "email me" stored in it as default. Whatever value you put in here will be displayed as the text for the link to your email. You could use "email me", "contact me", etc. If you leave this blank (i.e. "") your actual email address will be displayed on your web page, it will still be safe as the actual code for your web page will not show this. You may use this code for your own personal web sites as long as you do not represent it as your own or distribute it further. For use on commercial web sites please request permission. You may not distribute this code in any form, web site, cd-rom, etc. without prior permission. If you have questions, comments or problems with this script feel free to contact me . |
| Single file example |
|
If you want to add your email address to one page do the following. To do this click on the link below to select the contents of the first text box and copy those contents. Next, paste these contents into your web page code at the location you want the link added. That's it.
|
| Multi file example |
|
If you have several or many web pages you would like to add your email adddress to follow these directions. It looks more difficult, but it isn't to bad. The first thing you need to do is click the link above the first text box below and copy the contents. Now make a new file and paste the contents into this new file. Save this file as "email.js". This will contain all of the code for your links for every page you use them on. To change your email address for all of your pages you only need to edit this file. Next click the link above the second text box below and copy the contents. Now paste the this into ever page you want to add your email address. You must paste this between the beginning and ending head tags for it to work. The last step is to click on the link above the third text box below and copy the contents. Paste this into every web page where you want your email address to appear. Note, you need to put this in your code where you would normally put your mailto tag for your email address. You can change the text "email me" to anything you want, it can be different for every instance of your email address. This is the text that shows up as the link to your email. If you leave this blank your email address will be displayed. It will still be safe as it will still be coded in the code of your web page.
|