Connecting Tech Pros Worldwide Help | Site Map

safe email address?

Gernot Frisch
Guest
 
Posts: n/a
#1: Mar 23 '06

Hi,

is this code:

<script type="text/javascript">
var a,b,c,d;
a = "x";
c = "kungfu";
b = "y";
d = "com";
document.write("<a href='mailto:" + a+b+"@"+c+"."+d+"'>eMail</a");
</script>

a safe way of hiding email address from spam bots? Or will they know
javascript and produce the xy@kungfu.com ??


--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}



Randy Webb
Guest
 
Posts: n/a
#2: Mar 23 '06

re: safe email address?


Gernot Frisch said the following on 3/23/2006 6:02 AM:[color=blue]
> Hi,
>
> is this code:
>
> <script type="text/javascript">
> var a,b,c,d;
> a = "x";
> c = "kungfu";
> b = "y";
> d = "com";
> document.write("<a href='mailto:" + a+b+"@"+c+"."+d+"'>eMail</a");
> </script>
>
> a safe way of hiding email address from spam bots?[/color]

No.
[color=blue]
> Or will they know javascript and produce the xy@kungfu.com ??[/color]

There are some that will.

Want a fool-proof way to keep a spammer from getting the email address?
Use a form, submit it to the server, the server sends you the email
address without it ever appearing on the web page.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Gernot Frisch
Guest
 
Posts: n/a
#3: Mar 23 '06

re: safe email address?


[color=blue][color=green]
>> Hi,
>>
>> is this code:
>>
>> <script type="text/javascript">
>> var a,b,c,d;
>> a = "x";
>> c = "kungfu";
>> b = "y";
>> d = "com";
>> document.write("<a href='mailto:" +
>> a+b+"@"+c+"."+d+"'>eMail</a");
>> </script>
>>
>> a safe way of hiding email address from spam bots?[/color]
>
> No.
>[color=green]
>> Or will they know javascript and produce the xy@kungfu.com ??[/color]
>
> There are some that will.
>
> Want a fool-proof way to keep a spammer from getting the email
> address? Use a form, submit it to the server, the server sends you
> the email address without it ever appearing on the web page.[/color]

OK, thank you.


Closed Thread