Script to "hide" email address from SPAM Email Harvesting.


Many email SPAM generators "harvest" email address from webpages. If you list your email address on an open page, it's easy for these SPAMMERS to use automation to "crawl" the Web for email addresses and then send massive amounts of SPAM to those addresses.

Here is a piece of Java Script that will prevent the harvesting of your email address but still allow you to post your email on the web. It uses ASCII codes to render an email address. These codes are numbers that represent ASCII characters (alphabet, numbers, and other keyboard symbols). The ASCII equivalent for characters used for email address (numbers and alphabet) are listed below.

This example uses my email address "dunlapd@vt.edu". Each character in that address is replaced by the equavalent number so
100,117,110,108,97,112,100,64,118,116,46,101,100,117 = dunlapd@vt.edu

You will need to replace each relevant occurance of "dunlapd" and the string of numbers with your corresponding email address. If you need help modifying this script for your email address and posting it on your webpages, please let me know at the email address in this example.

Note: I have shown this script as an image since it will get "shown" as an email link when it is rendered in your web browser. To copy and paste the script, click "web editor" and copy the content between (but not including) the +++++++++++ lines. Or just retype the script shown in the image replacing with your email address.

script.jpg

+++++++++++


+++++++++++

Other Methods of hiding email address.

Here are some other examples of ways to hide email addresses. You can copy the source using "Web Editor" or "Full Editor".

1. HTML Tag and ASCII

This is probably the easiest and most forgiving method.

Code:
1.jpg

Looks like this:
Dan

2. Using Java Script by breaking up email address and creating clickable image

This requires uploading an image, in this case, "email.gif".

Code:
2.jpg

Looks like this:

3. Java script and ASCII


Code:
3.jpg

Looks like this:

ASCII Character Conversion

The following table lists the ASCII codes for common email characters as
"email character" = "ACII code" (see example above).


Numbers Caps Lower Case
0=48 A=65 a=97
1=49 B=66 b=98
2=50 C=67 c=99
3=52 D=68 d=100
4=53 E=69 e=101
5=54 F=70 f=102
6=55 G=71 g=103
7=56 H=72 h=104
8=57 I=73 i=105
9=58 J=74 j=106
K=75 k=107
@=64 L=76 l=108
M=77 m=109
.=46 N=78 n=110
O=79 o=111
P=80 p=112
Q=81 q=113
R=82 r=114
S=83 s=115
T=84 t=116
U=85 u=117
V=86 v=118
W=87 w=119
X=88 x=120
Y=89 y=121
Z=90 z=122


/public/emailscript Login | Web Editor | Full Editor
Last modified 7/20/06 12:01 AM by dunlapd (history)
Site contents