You are here: Re: How 2 protect my email address? « PHP Language « IT news, forums, messages
Re: How 2 protect my email address?

Posted by Sean on 03/30/07 08:59

> $myEmail1 = "myem...";
> $myEmail2 = "@";
> $myEmail3 = "blah.com";


As someone suggested, the fact that this is constructed on the server,
offers us nothing.

Would not make more sense to carry this style in the HTML, as Javascript?

Something like:

<script>
function em(who, domain, ext)
{
location.href = "mailto:" + who + "@" + domain + "." + ext;
}
</script>

<a href="" onClick="em('dave','msn', 'com')">Email Dave</a>
<a href="" onClick="em('sarah','hotmail', 'co.uk')">Email Dave</a>

By far, I am not suggesting this as the be all and end all solution, but
like someone else suggested ... ensuring that the resulting HTML does not
display the full email@domain.com style address on the page, or in the HTML
code certainly does help limit the spam.

Okay, so any programmer with 20 seconds to spare would write something to
unravel this, but with the "billions" of email addresses readily available
on so many websites, is it worth their effort?

Anyway, that's my thoughts, for what they're worth.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация