back to front
How to Dodge the Spam-Bots
Thanks to ASCII Equivalents & Javascript
Just Picture It - Scripted Lines - Or Even Easier - But Don't Hyperlink It


Ah, the joys of spam...

So you started a website, you posted your email address and within 6 months you're getting 30+ emails a day on how to grow a larger penis, find the dirtiest porn on the net, buy presciptions online, and my all-time favorite, stop recieving spam... those dirty bastards must roll from the irony of that one.

So how do they get your email address? Typically "spambots" crawl the internet much like a search engine does, except the only thing they are looking for is AnyAdress@AnyISP.anything. They harvest them by the tens of thousands from newsgroups, company directories, and most importantly, all over your website.


Just Picture It

A picture paints a thousand words... and stops a billion Viagra ads? Free Golf Wedge? Sir, I must contact you for confidential matter from Namibia? this isn't a link, you'll have to type it in manually is an easy way to go. Code looks like this;

<img src="picture-email.gif" alt="this isn't a link, you'll have to type it in manually" align=middle>

Incidentally, for my example here, I used a *.gif file with a transparent background, so it actually looks like text. See how slick you can be?


Scripted Lines

Here it is, your unreadable, reasonably bot-proof, theoretically fully functional mailto link. Whadda ya think? It (hopefully) works because the email address is hidden within a Javascript, so the bots won't see it, they'll just slide right past it. In the code it looks like this;

<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
user = "webmaster";
site = "yoursite.com";

document.write('<a href=\"mailto:' + user + '@' + site + '\">');
document.write(user + '@' + site + '</a>');
// End -->
</SCRIPT>


Even Easier

Go to Dynamic Drive and use their "email riddler". It's slightly more elaborate, so maybe that means it's better. What it does is instead of hiding your name in an easy code, it translate's it to it's ASCII equivalents first. Does that really help? I don't know. Also, the email riddler will enable you to have a custom subject line. That's gotta count for something, right?


But Don't Hyperlink It

An easy way to cut WAY back is by not posting an email address... But you want people to reach you, right? So how about posting your email address so humans can read it but spambots can't. Do not hyperlink your email address. Yes it's convenient that people can just click on it and have their email open up, but if they want to reach you, this will not slow them down. Next, use ASCII equivalents instead of spelling out your address.

What I have done is make it look like this, webmaster@glossynews. You'll notice you can't click it, and if you were to look in at the code (which is all a spambot does,) you'd see that it looks exactly like this;

<font color=blue><u>&#119;&#101;&#098;&#109;&#097;&#115; &#116;&#101;&#114;&#064;&#103;&#108;&#111;&#115;&#115; &#121;&#110;&#101;&#119;&#115;</u><font color=black>

It's a total mess, isn't it? Yep, that's what keeps the spambots away, I'm told... Incidentally, keep it all on a single line, of course. And here are some commonly used characters and their ASCII equivalents for your email address.

Char HEX ASCII Char HEX ASCII
A
41
&#065;
a
61
&#097;
B
42
&#066;
b
62
&#098;
C
43
&#067;
c
63
&#099;
D
44
&#068;
d
64
&#100;
E
45
&#069;
e
65
&#101;
F
46
&#070;
f
66
&#102;
G
47
&#071;
g
67
&#103;
H
48
&#072;
h
68
&#104;
I
49
&#073;
i
69
&#105;
J
4A
&#074;
j
6A
&#106;
K
4B
&#075;
k
6B
&#107;
L
4C
&#076;
l
6C
&#108;
M
4D
&#077;
m
6D
&#109;
N
4E
&#078;
n
6E
&#110;
O
4F
&#079;
o
6F
&#111;
P
50
&#080;
p
70
&#112;
Q
51
&#081;
q
71
&#113;
R
52
&#082;
r
72
&#114;
S
53
&#083;
s
73
&#115;
T
54
&#084;
t
74
&#116;
U
55
&#085;
u
75
&#117;
V
56
&#086;
v
76
&#118;
W
57
&#087;
w
77
&#119;
X
58
&#088;
x
78
&#120;
Y
59
&#089;
y
79
&#121;
Z
5A
&#090;
z
7A
&#122;
0
30
&#048;
@
40
&#064;
1
31
&#049;
_
5F
&#095;
2
32
&#050;
-
96
&#150;
3
33
&#051;
.
2E
&#046;
4
34
&#052;
/
2F
&#047;
5
35
&#053;

Enjoy what you read?

By clicking the picture

6
36
&#054;
7
37
&#055;
8
38
&#056;
9
39
&#057;

Want common characters that aren't on this list? This page has more.

Want characters that are both uncommon AND not on this list? Go here to see all 999 ASCII characters...

Join ISNA -Subscription Info -Members Area -Webmaster Resources


Back to ISNA...