<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>..::\\ www.christiano.ch //::.. &#187; Antispam</title>
	<atom:link href="http://www.christiano.ch/wordpress/tag/antispam/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christiano.ch/wordpress</link>
	<description>christiano.ch blog - personal knowledge base, news, memoires et cetera</description>
	<lastBuildDate>Fri, 06 Jan 2012 15:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Protect your email addresses from spam</title>
		<link>http://www.christiano.ch/wordpress/2009/10/20/protect-your-email-addresses-from-spam/</link>
		<comments>http://www.christiano.ch/wordpress/2009/10/20/protect-your-email-addresses-from-spam/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 12:54:55 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Antispam]]></category>
		<category><![CDATA[Content]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2009/10/20/protect-your-email-addresses-from-spam/</guid>
		<description><![CDATA[Before you publish your email addresses somewhere on your webpage, blog or personal site, you should think about protecting it from spammers respectively from bots crawling the net looking for email addresses. There are several methods to accomplish this. I&#8217;ll &#8230; <a href="http://www.christiano.ch/wordpress/2009/10/20/protect-your-email-addresses-from-spam/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table style="width: 675px" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="597">
<p>Before you publish your email addresses somewhere on your webpage, blog or personal site, you should think about protecting it from spammers respectively from bots crawling the net looking for email addresses.</p>
<p>There are several methods to accomplish this. I&#8217;ll list a few of those methods:</p>
</td>
<td valign="top" width="77"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/10/Antispam1.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Antispam" border="0" alt="Antispam" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/10/Antispam_thumb1.jpg" width="97" height="98" /></a></td>
</tr>
</tbody>
</table>
<p> <span id="more-614"></span>
</p>
<p><a href="http://www.google.ch/search?q=email+address+unicode&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t" target="_blank">Convert the email address to Unicode characters</a></p>
<p>This was not a bad idea in the past, but also bots evolve&#160; It can just as easily interpret the special character entities #64;, #46; for the @ and the . characters respectively. A minor plus in this case is that, the user may be able to use their email client.</p>
<p>   <br class="spacer_" /></p>
<h3>HTTP redirection</h3>
<p>Write a server-side script to return &quot;mailto:foo@host.com&quot; link as an HTTP redirect. All modern browsers recognise this, but perhaps not many harvester bots do. This can be done with Apache&#8217;s mod_rewrite, Javascript or server-side scripting. Here is an example in PHP:</p>
<p>/* Will be displayed in browser like*/</p>
<p><a href="http://www.christiano.ch/common/scripts/blog/MailToRedirect.php" target="_blank">foo&#8217;s email</a></p>
<p>/* In email_foo.php file */</p>
<p>&lt;?php</p>
<p>header (&quot;Location: mailto:foo@host.com&quot;);</p>
<p>exit();</p>
<p>?&gt;</p>
<p>In this case the user has to follow the link and rely on their mail application to get a hold of the email address. The user has to copy the email address from the application instead of doing it directly from the webpage.</p>
<p>   <br class="spacer_" /></p>
<h3>Using a JavaScript (my favorite)</h3>
<p>   <br class="spacer_" /></p>
<p>/* Will be displayed in browser like*/</p>
<p><a href="javascript:email('foo',2)">contact foo via mail</a></p>
<p>&#8212;- script &#8212;</p>
<p>&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot;&gt;</p>
<p>function email(n, d) {</p>
<p>if(d == 1){</p>
<p>document.location.href=&#8217;mailto:&#8217; + n + &#8216;@gmail.com?Subject=contacting from webpage&#8217;;</p>
<p>}</p>
<p>if(d == 2){</p>
<p>document.location.href=&#8217;mailto:&#8217; + n + &#8216;@hotmail.com?Subject=contacting from webpage&#8217;;</p>
<p>}</p>
<p>if(d == 3){</p>
<p>document.location.href=&#8217;mailto:&#8217; + n + &#8216;@someotherdomain.com?Subject=contacting from webpage&#8217;;</p>
<p>}</p>
<p>if(d == 4){</p>
<p>document.location.href=&#8217;mailto:&#8217; + n + &#8216;@christiano.ch?Subject=contacting from webpage&#8217;;</p>
<p>}</p>
<p>}</p>
<p>&lt;/script&gt;</p>
<p>&#8212; end of script&#8212;</p>
<p>however, there are several good methods, it’s almost impossible to list them all .. if you’re interested in protecting your email address using other ways, here are a few keywords to use when searching in Goggle or Bing..</p>
<p>Hex values</p>
<p>HTML Comments</p>
<p>Fake email</p>
<p>Obfuscate AJAX</p>
<p>CSS pseudo-element</p>
<p>Images</p>
<p>CSS unicode-bidi</p>
<p>CSS display be none</p>
<p>Flash</p>
<p>Forms</p>
<p>   <br class="spacer_" /></p>
<h3>Links</h3>
<p><a href="http://www.csarven.ca/hiding-email-addresses" target="_blank">Methods to hide email addresses from page source</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Protect+your+email+addresses+from+spam+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D614" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Protect+your+email+addresses+from+spam+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D614" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/10/20/protect-your-email-addresses-from-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

