Powered By

Powered by Blogger

Selasa, 04 Agustus 2009

3 Ways Of Hiding Your Email Address From Spambots

1. Using unicode

You can use this form to convert your email address to unicode. After converting, the email link will look like this (in plain text):
<a href = '&#109;&#97;&#105;&#108;&#116;&#111;:&#119;&#101;&#98;&#117;&#112;&#100;&#56;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;'>&#119;&#101;&#98;&#117;&#112;&#100;&#56;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a>

And here it is implemented: webupd8@gmail.com (you can look at the source code and see that the email address is not visible)

2. Javascript

Use the following javascript code to hide your email address on a webpage:
<script type="text/javascript"><!--var string1 = "foo";var string2 = "@";var string3 = "bar.com";var string4 = string1 + string2 + string3;document.write("<a href=" + "mail" + "to:" + string1 + string2 + string3 + ">" + string4 + "</a>");//--></script>

Replace foo with your email username and bar.com with the domain of your email. Here it is in action:

3. Javascript using MailToEncoder

Go to MailToEncoder and enter the email address you want to hide and paste the javascript code where you want to display your email address.

The code looks like this:
<script type="text/javascript"><!--var egikmgo = ['u','a','e','f','o','r','l','8','e','p','>','d','<','"','w','.','w','a','h','=',' ','u','m','l','p','e','a','.','c','b','g','o','m','i','b','m','@','>','i','m',':','t','c','@','"','8','<','i','g','d','l','m','/','a','o','a'];var ujyczmr = [38,54,36,6,31,4,28,22,5,39,34,40,0,8,16,29,35,26,3,7,2,19,25,47,20,17,45,48,30,37,43,50,32,46,18,51,23,55,27,9,15,13,49,42,33,41,52,11,24,21,12,44,53,10,14,1];var btuarfv= new Array();for(var i=0;i<ujyczmr.length;i++){btuarfv[ujyczmr[i]] = egikmgo[i]; }for(var i=0;i<btuarfv.length;i++){document.write(btuarfv[i]);}// --><</script><noscript>Please enable Javascript to see the email address</noscript>

And here it is live:

Bonus: combining method #1 and #2

Go to this website and enter the first part of your email (the text before @) - let's name it code#1 and then do the same thing for the second part of your email (the text after @), let's call it code#2. Now enter the following code where you want to post your email address:
<script type="text/javascript"><!--var string1 = "code#1";var string2 = "@";var string3 = "code#2";var string4 = string1 + string2 + string3;document.write("<a href=" + "mail" + "to:" + string1 + string2 + string3 + ">" + string4 + "</a>");//--></script>
Replace code#1 and code#2 with the encoded text you got like I explained above. And here is the code in action:

And finally, if you want an even bigger protection, you can put all this code in a .js file and call it like this:
<script type="text/javascript" src="http://mywebsite/emailfile.js"></script>

Tidak ada komentar:

Posting Komentar