<?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; Web</title>
	<atom:link href="http://www.christiano.ch/wordpress/category/web/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>Thu, 29 Jul 2010 06:18:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Redirect visitor on 404 Not Found using CPanel on cyon</title>
		<link>http://www.christiano.ch/wordpress/2010/07/29/redirect-visitor-on-404-not-found-using-cpanel-on-cyon/</link>
		<comments>http://www.christiano.ch/wordpress/2010/07/29/redirect-visitor-on-404-not-found-using-cpanel-on-cyon/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 06:18:00 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[cyon]]></category>
		<category><![CDATA[Redirect]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2010/07/29/redirect-visitor-on-404-not-found-using-cpanel-on-cyon/</guid>
		<description><![CDATA[Some of my hostings are hosted on cyon.ch, a Swiss hosting provider. Whenever i do a redesign of a page, often the content and the associated URL’s change. So when a user comes from Google, bing, yahoo or another search engine, they often face a HTTP 404 error code – not found. In cyon.ch CPanel, [...]]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="626">Some of my hostings are hosted on cyon.ch, a Swiss hosting provider. Whenever i do a redesign of a page, often the content and the associated URL’s change. So when a user comes from Google, bing, yahoo or another search engine, they often face a HTTP 404 error code – not found. </td>
<td valign="top" width="48"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/Logo_Cpanel.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Logo_Cpanel" border="0" alt="Logo_Cpanel" src="http://www.christiano.ch/wordpress/wp-content/uploads/2010/07/Logo_Cpanel_thumb.png" width="224" height="68" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-1069"></span>
<p>In cyon.ch CPanel, just navigate to Domain – HTTP Fehler and choose the Error 404 (Wrong Page) template. Paste the HTML Code below in that file (it’s called 404.shtml), save it and you’re done. </p>
<p>Don’t forget to change the <a href="http://www.yoursite.com">www.yoursite.com</a> .. </p>
<pre>&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;Meta Redirect Code&lt;/TITLE&gt;
&lt;meta http-equiv=&quot;refresh&quot; content=&quot;0;url=http://www.yoursite.com/&quot;&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;script language=&quot;javascript&quot;&gt;
location.replace(&quot;http://www.yoursite.com/&quot;);
&lt;/script&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;</pre>
<p>you can test it by entering <a href="http://www.yoursite.com/thispagedoesnotexist">http://www.yoursite.com/thispagedoesnotexist</a></p>
<p>if you’re getting redirected, the thing works!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2010/07/29/redirect-visitor-on-404-not-found-using-cpanel-on-cyon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 list a few of those methods: Convert the email address to Unicode characters This was [...]]]></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>
]]></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>
