Subject: Hiding your email address from spammers.
As I noticed on webpages that you hide your email address by making
a picture out of it. This is getting to be a popular technique, but
remember, optical scanning can recognize a lot of these. One way to
make it harder is to hash another picture over it lightly, rotate each
of the letters a few degrees with a graphics editor, or a combination
of these and other techniques.
You can make it clickable, but you'll want to hide the Email address
from spam scanners that scan webpages. Don't leave the email address
readable. I've provided a little program to hide (escape) the email
address. Although the spammers could decode this, like the mail programs
do, most don't get this.
Here's a little C program I wrote. I assuming that you have a C compiler.
This will allow you to 'escape' an email name.
Once compiled, just type:
escape my_email@domain.com
It will output a line that looks like:
%6d%79%5f%65%6d%61%69%6c%40%64%6f%6d%61%69%6e%2e%63%6f%6d
You'll probably want to direct this output to a file, then insert
the output file to the line in your HTML code.
.............................................................................
Instead of HTML code showing:
.............................................................................
You can use:
.............................................................................
Even as simple as the following seems to work:
.............................................................................
/*
* Program name = "escape.c"
*
* Used to escape ASCII characters in web pages and make them
* into hex number sequences.
* Example:
* from "mailto:edw@wells.com"
* to "mailto:%65%64%77%40%77%65%6c%6c%73%2e%63%6f%6d
* (Note: Don't escape the 'mailto:' part of the address, as
* it will cause problems with most browsers to find the
* mail program)
*
* Written by: edw@wells.com ... www.wells.com
*
* $Log: escape.c,v $
* Revision 1.3 2007/03/13 01:06:26 edw
* Changed the 'mailto:' as visible and added a comment about it.
* Added my Email address before posting this source on the Internet.
*
* Revision 1.2 2007/02/12 23:46:35 edw
* Change the example (in the comment area at the top)
* to a better example. And I use 'escape' to put it's own
* comment in.
*
* Revision 1.1 2007/02/12 23:44:18 edw
* Initial revision
*
*/
#include
#include
int main(int ac, char *av[])
{
char *cmd;
int i;
if ( (cmd=strrchr(av[0], '/')) != NULL )
cmd++;
else
cmd=av[0];
if (ac != 2) {
fprintf(stderr, "Usage: %s String_to_convert_to_hex_sequence\n", cmd);
exit (1);
}
for (i=0 ; i