Sunday, May 19, 2024
87
rated 0 times [  94] [ 7]  / answers: 1 / hits: 23269  / 15 Years ago, mon, april 20, 2009, 12:00:00

Duplicate:







What is the best way to prevent spammers from getting the email address from your mailto links? I'm under the impression that javascript could be a solution. I don't know if my current solution is fool proof, so that's why I'm asking.


Here's what I'm currently doing:


<script language="JavaScript"><!--
var name = "emailusername";
var domain = "yahoo.com";
var text = "[email protected]";
document.write('<a href="mailto:' + name + '@' + domain + '">');
document.write(text + '</a>');
// --></script>

Is there is a better way? I don't like having to have this chunk of code everywhere I want to put a mailto link.


More From » spam-prevention

 Answers
Only authorized users can answer the question. Please sign in first, or register a free account.
karleel

Total Points: 309
Total Questions: 79
Total Answers: 86

Location: Monaco
Member since Sun, Jan 16, 2022
2 Years ago
;