View Full Version : Encrypt email address in HTML

17-01-2007, 03:22 PM
I have recently applied for a domain name and would like to create a simple HTML webpage.

The webpage will have my email address. Is there anyway I can encrypt the email so that user can see it but programs cannot read or get the email automatically for spamming? I do not wish to use picture, but allow user to click and open up a new mail in their default email, or highlight my email address to copy/paste.

Ullas Sahadevan
17-01-2007, 06:13 PM
In this particular scenario, you will have to use an image to display your email address/ email icon. When the user clicks on it, you will need to call a server side script to generate the email address part of the 'mailto:' property.

Basically a script that will throw open the user's email client and generate your email ID 'on the fly' (encrypted too yes, since the server will be dispensing it).

I am not a programmer. You might want to ask the more qualified people here more on this.

18-01-2007, 07:51 AM
Thanks Ullas,

I came across a site that has the email HTML coded with ASCII rather than just plain text. I will combine that with image as mentioned and hope this will deter spamming.

I am not a programmer either and I learn HTML by looking at other websites source code.

Ullas Sahadevan
18-01-2007, 10:42 AM
ASCII was something I was thinking about too ;) Can you share a link to the script? it sounds interesting. Yea, we can all learn a lot by looking at source code. I know programming, but never really pursued it as a career :D

19-01-2007, 10:04 AM
i have PM you the site. Don't want the site to be hacked/ spamed cos of me... :p