The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: [OT]: how to protect e-mail on website?



I use PHP to obfuscate the email address (could be done by hand) and
Javascript to rebuild the mailto. On some pages I put a graphic @ to make
screen scraping difficult. Any visible email addresses are put in as hex
codes.

function MyMailTo(who)
{
newwho = "" ;
for (i=who.length-1; i>=0; i--)
{
newwho += who.substr(i,1) ;
}
mail = "mailto:"; +
newwho ;
mail = mail.replace(/=/, "@") ;
mail = mail.replace(/~/g, ".") ;
document.location=mail ;
}

<li>e-mail <a href=eMail
onclick="MyMailTo('ten~tenretnimooz=7zmot');return
false;">&#116;&#111;&#109;&#122;&#55;<img
src="/images/at1.gif"
border="0">&#122;&#111;&#111;&#109;&#105;&#110;&#116;&#101;&#114;&#110;&#101
;&#116;&#46;&#110;&#101;&#116;</a></li>

Pete

*********** REPLY SEPARATOR  ***********

On 13/02/2006 at 11:29 Gary wrote:

>hello,
>
>I have just set up a web site, and I need to know how you protect your
>e-mail address from being "scanned" and added to mailing
lists?
>
>In the past I have just created a link to my e-mail address, and
>obviously somehow it was scanned by a Bot, and received hundreds of
>emails!
>
>I assume some of you have your own web pages, how do you go about it?
>
>regards Gary
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>






UKHA_D Main Index | UKHA_D Thread Index | UKHA_D Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.