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 DOT def AT ghi DOT com
please.

Mail me at

mich@ael - com
please.

Mail me at

123 DOT 456 AT 789 DOT 012 DOT 345 DOT CH
please.

Mail me at

a AT b DOT c
please.

With descr and attr

Mail me at

abc.defREMOVE_LAST_COM@ghi.com.com
please.

Mail me at

michNOS@PAMael.com
please.

Mail me at

123 DOT 456 AT 789 DOT 012 DOT 345 DOT CH
please.

Mail me at

a@b - 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+'@'+'gh'+'i'+'.com'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YukGanBkZlRmLjJWY" title="abc DOT def AT ghi DOT com" alt="abc DOT def AT ghi DOT 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+'@'+'ael'+'.co'+'m'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'ael'+'.co'+'m'+'"'+'>'+b+String.fromCharCode(64)+'ael'+'.co'+'m'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YuwWZhBEajlWb" title="mich@ael - com" alt="mich@ael - 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.0'+'12.3'+'45.'+'C'+'H'+'"'+' tit'+'le="'+a+'@'+'78'+'9.0'+'12.3'+'45.'+'C'+'H'+'"'+'>'+b+'@'+'78'+'9.0'+'12.3'+'45.'+'C'+'H'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3D%3DASD5SN0MjLyEDMukDO3AkN1QjLzITM" title="123 DOT 456 AT 789 DOT 012 DOT 345 DOT CH" alt="123 DOT 456 AT 789 DOT 012 DOT 345 DOT 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+'@'+'b.c'+'"'+' tit'+'le="'+a+'@'+'b.c'+'"'+'>'+b+'@'+'b.c'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3DMmLiBUY" title="a AT b DOT c" alt="a AT b DOT c"></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+String.fromCharCode(64)+'ghi.'+'co'+'m'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'ghi.'+'co'+'m'+'"'+'>'+b+'MA'+'IL'+' Ad'+'dr'+'e'+'ss'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YukGanBkZlRmLjJWY" title="abc.defREMOVE_LAST_COM@ghi.com.com" alt="abc.defREMOVE_LAST_COM@ghi.com.com"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='mich'
var b='EMAI'
document.write("<"+"a "+ ' class=\"tfa\" '+"hr"+'ef="'+"mai"+"lto:"+a+'@'+'ae'+'l.c'+'om'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'ae'+'l.c'+'om'+'"'+'>'+b+'L'+' '+'A'+'ddre'+'ss'+'<\/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='EMA'
document.write("<"+"a "+ ' class=\"tfa\" '+"hr"+'ef="'+"mai"+"lto:"+a+'@'+'7'+'89.'+'01'+'2.3'+'45'+'.'+'CH'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'7'+'89.'+'01'+'2.3'+'45'+'.'+'CH'+'"'+'>'+b+'IL'+' Add'+'ress'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3D%3DASD5SN0MjLyEDMukDO3AkN1QjLzITM" title="123 DOT 456 AT 789 DOT 012 DOT 345 DOT CH" alt="123 DOT 456 AT 789 DOT 012 DOT 345 DOT CH"></img></div></noscript> please.</p>
<p>Mail me at <script type="text/javascript">
<!--
var a='a'
var b='EMA'
document.write("<"+"a "+ ' class=\"tfa\" '+"hr"+'ef="'+"mai"+"lto:"+a+String.fromCharCode(64)+'b.'+'c'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'b.'+'c'+'"'+'>'+b+'IL A'+'ddr'+'ess'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=%3DMmLiBUY" title="a@b - c" alt="a@b - 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+'@'+'mai'+'ld'+'omai'+'n.'+'com'+'"'+' tit'+'le="'+a+'@'+'mai'+'ld'+'omai'+'n.'+'com'+'"'+'>'+b+'@'+'mai'+'ld'+'omai'+'n.'+'com'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92Yu4Wah12bkxWah1GQzNXZyRGZh5ic19We" title="your DOT address AT maildomain DOT com" alt="your DOT address AT maildomain DOT 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+'@'+'onco'+'d'+'e.co'+'m'+'"'+' tit'+'le="'+a+String.fromCharCode(64)+'onco'+'d'+'e.co'+'m'+'"'+'>'+b+String.fromCharCode(64)+'onco'+'d'+'e.co'+'m'+'<\/a>')
//-->
</script><noscript><div><img src="?ma=t92YuUGZvNmbvBkclNXd" title="user AT oncode DOT com" alt="user AT oncode DOT com"></img></div></noscript>!!!