Hide Email from Spammer

If your address is on the internet, you can be sure that automatic spiders will get them and you will be pressed on a DVD with 999'999'999 other poor addresses. Sooner or later you will get unsolicited advertising mails (spam) in incredible masses. This class tries to hide the address in 2 ways:

  1. It will create a JavaScript to create the address. The spambots usually are not (yet) that intelligent and cannot execute it.
  2. If Javascript is disabled, an image will be created.

It would be nice if you could send me improvements back or just tell me that you use it.

This class is an adaption of ideas at:

Please use them, download the source from oncode.info and modify them.


Hush, hush, hide - oh - my mail

Without descr

Mail me at

abc.defNOS@PAMghi.com
please.

Mail me at

michNOS@PAMael.com
please.

Mail me at

123.456NOS@PAM789.012.345.ch
please.

Mail me at

aREMOVE_LAST_COM@b.c.com
please.

With descr and attr

Mail me at

abc.defNOS@PAMghi.com
please.

Mail me at

michREMOVE_LAST_COM@ael.com.com
please.

Mail me at

123.456REMOVE_LAST_COM@789.012.345.CH.com
please.

Mail me at

aNOS@PAMb.c
please.

From Text

Hello you at , I am a !!!

The Source (Spot any email?):

<h2>Without descr</h2>
<p>Mail me at <script type="text/javascript">
<!--
var a='abc.def'
var b='abc.def'
document.write("<"+"a "+"hr"+'ef="'+"mai"+"lto:"+a+'@'+'gh'+'i.'+'com'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'gh'+'i.'+'com'+'"'+'>'+b+String.fromCharCode(64)+'gh'+'i.'+'com'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YukGanBkZlRmLjJWY" title="abc.defNOS@PAMghi.com" alt="abc.defNOS@PAMghi.com"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='mich'
var b='mich'
document.write("<"+"a "+"hr"+'ef="'+"mai"+"lto:"+a+'@'+'a'+'e'+'l.'+'c'+'om'+'"'+' tit'+'le="'+a+'@'+'a'+'e'+'l.'+'c'+'om'+'"'+'>'+b+'@'+'a'+'e'+'l.'+'c'+'om'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YuwWZhBEajlWb" title="michNOS@PAMael.com" alt="michNOS@PAMael.com"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='123.456'
var b='123.456'
document.write("<"+"a "+"hr"+'ef="'+"mai"+"lto:"+a+String.fromCharCode(64)+'78'+'9.'+'012.'+'34'+'5.'+'CH'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'78'+'9.'+'012.'+'34'+'5.'+'CH'+'"'+'>'+b+'@'+'78'+'9.'+'012.'+'34'+'5.'+'CH'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3D%3DASD5SN0MjLyEDMukDO3AkN1QjLzITM" title="123.456NOS@PAM789.012.345.ch" alt="123.456NOS@PAM789.012.345.ch"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='a'
var b='a'
document.write("<"+"a "+"hr"+'ef="'+"mai"+"lto:"+a+String.fromCharCode(64)+'b'+'.c'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'b'+'.c'+'"'+'>'+b+String.fromCharCode(64)+'b'+'.c'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3DMmLiBUY" title="aREMOVE_LAST_COM@b.c.com" alt="aREMOVE_LAST_COM@b.c.com"></img></div></noscript> please.</p>
<h2>With descr and attr</h2><p>Mail me at <script type="text/javascript">
<!--
var a='abc.def'
var b='E'
document.write("<"+"a "+ ' class=\"tfa\" '+"hr"+'ef="'+"mai"+"lto:"+a+'@'+'ghi'+'.'+'com'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'ghi'+'.'+'com'+'"'+'>'+b+'M'+'AIL'+' A'+'ddre'+'ss'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YukGanBkZlRmLjJWY" title="abc.defNOS@PAMghi.com" alt="abc.defNOS@PAMghi.com"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='mich'
var b='EMA'
document.write("<"+"a "+ ' class=\"tfa\" '+"hr"+'ef="'+"mai"+"lto:"+a+String.fromCharCode(64)+'a'+'e'+'l.c'+'om'+'"'+' tit'+'le="'+a+'@'+'a'+'e'+'l.c'+'om'+'"'+'>'+b+'IL'+' '+'Addr'+'es'+'s'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YuwWZhBEajlWb" title="michREMOVE_LAST_COM@ael.com.com" alt="michREMOVE_LAST_COM@ael.com.com"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='123.456'
var b='EMAI'
document.write("<"+"a "+ ' class=\"tfa\" '+"hr"+'ef="'+"mai"+"lto:"+a+'@'+'789'+'.'+'01'+'2.3'+'4'+'5.CH'+'"'+' tit'+'le="'+a+'@'+'789'+'.'+'01'+'2.3'+'4'+'5.CH'+'"'+'>'+b+'L A'+'ddre'+'ss'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3D%3DASD5SN0MjLyEDMukDO3AkN1QjLzITM" title="123.456REMOVE_LAST_COM@789.012.345.CH.com" alt="123.456REMOVE_LAST_COM@789.012.345.CH.com"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='a'
var b='EM'
document.write("<"+"a "+ ' class=\"tfa\" '+"hr"+'ef="'+"mai"+"lto:"+a+'@'+'b.'+'c'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'b.'+'c'+'"'+'>'+b+'AIL'+' '+'A'+'ddr'+'ess'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3DMmLiBUY" title="aNOS@PAMb.c" alt="aNOS@PAMb.c"></img></div></noscript> please.</p>
<h2>From Text</h2>Hello you at <script type="text/javascript">
<!--
var a='your.address'
var b='your.address'
document.write("<"+"a "+"hr"+'ef="'+"mai"+"lto:"+a+String.fromCharCode(64)+'mai'+'ldom'+'a'+'in'+'.c'+'o'+'m'+'"'+' tit'+'le="'+a+'@'+'mai'+'ldom'+'a'+'in'+'.c'+'o'+'m'+'"'+'>'+b+'@'+'mai'+'ldom'+'a'+'in'+'.c'+'o'+'m'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92Yu4Wah12bkxWah1GQzNXZyRGZh5ic19We" title="your.addressNOS@PAMmaildomain.com" alt="your.addressNOS@PAMmaildomain.com"></img></div></noscript>, I am a <script type="text/javascript">
<!--
var a='user'
var b='user'
document.write("<"+"a "+"hr"+'ef="'+"mai"+"lto:"+a+String.fromCharCode(64)+'onco'+'de.c'+'o'+'m'+'"'+' tit'+'le="'+a+'@'+'onco'+'de.c'+'o'+'m'+'"'+'>'+b+'@'+'onco'+'de.c'+'o'+'m'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YuUGZvNmbvBkclNXd" title="userREMOVE_LAST_COM@oncode.com.com" alt="userREMOVE_LAST_COM@oncode.com.com"></img></div></noscript>!!!