<?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>antzFxWay.com &#124; You have seen nothing yet! &#187; redirect</title>
	<atom:link href="http://antzfxway.com/tag/redirect/feed/" rel="self" type="application/rss+xml" />
	<link>http://antzfxway.com</link>
	<description>The Design Blog of antzFx.com &#124; Celebrating 2 years online</description>
	<lastBuildDate>Tue, 15 May 2012 17:13:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Technology: How do tinyurls work?</title>
		<link>http://antzfxway.com/2009/05/17/tinyurls-work/</link>
		<comments>http://antzfxway.com/2009/05/17/tinyurls-work/#comments</comments>
		<pubDate>Sun, 17 May 2009 15:55:19 +0000</pubDate>
		<dc:creator>fullfx</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[metarefresh]]></category>
		<category><![CDATA[metatag]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tinyurl]]></category>

		<guid isPermaLink="false">http://fullfx.antzfx.com/?p=342</guid>
		<description><![CDATA[Ssh! I know the secret. Now you are about to know the secret. Read on; if you can you keep a secret. Operation tinyurl.com Once I got the opportunity to look behind the closed doors of tinyurl.com. It was highly dangerous. A split second’s mistake, I am done for. Anyway, I took the chance. And [...]]]></description>
			<content:encoded><![CDATA[<p>Ssh! I know the secret. Now you are about to know the secret. Read on; if you can you keep a secret.</p>
<p style="text-align: center;"><a href="http://tinyurl.com/"><img class="size-full wp-image-338 aligncenter" title="tinyurl" src="http://fullfx.antzfx.com/wp-content/uploads/2009/05/tinyurl.png" alt="tinyurl" width="405" height="41" /></a></p>
<p><strong>Operation <em>tinyurl.com</em></strong></p>
<p>Once I got the opportunity to look behind the closed doors of <em>tinyurl.com</em>. It was highly dangerous. A split second’s mistake, I am done for. Anyway, I took the chance. And do you know what I saw? A <strong>goat</strong>!</p>
<p><span id="more-342"></span> Yes, a goat is their secret. The long urls are fed to the goat which chews and chews and chews it until it becomes a tiny URL. It is then picked up by an employee who posts it on the internet. That’s how tinyurls work.<br />
Jokes apart the charm of tinyurls stop the moment you tame the beast. The beast is called – <em>metarefresh</em>. Let&#8217;s say hello first.</p>
<p><strong>Meta refresh</strong></p>
<p><strong></strong>Meta refresh is a part of Meta tags. They are called Meta because they provide structured data about a web page, particularly to the search engines.</p>
<p><em>&lt;meta name=&#8221;description&#8221; content=&#8221;A blurb to describe the content of the page appears here&#8221; /&gt;</em></p>
<p><em></em>Meta tags are placed inside <em>&lt;meta&gt;</em> tag as shown above. There exist two more valid Meta tag in addition to the ones listed above– <em>scheme</em> and <em>http-equiv</em>. Of which, <em>http-equiv</em> will help us understand how tinyurls work.</p>
<p><strong>How to redirect a page?</strong></p>
<p>Would you believe me when I say all it takes is a single line?</p>
<p>Here is the magic line.<br />
<em>&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0;url=http://www.fullfx.antzfx.com&#8221;/&gt;</em></p>
<p><em></em>This line instructs the browser to redirect to <em>http://www.fullfx.antzfx.com</em> immediately. The zero inside <em>content</em> makes the redirect instant.</p>
<p><strong>How does <em>tinyurl.com</em> use this?</strong></p>
<p><strong></strong>When analysed closely, you can see that there are two parts for a <em>tinyurl</em> – a <strong>base part</strong> and a <strong>random part</strong>. Like this:</p>
<p><a href="http://tinyurl.com/ptl29z" target="_blank"><img class="aligncenter size-full wp-image-337" title="tinyurl-split" src="http://fullfx.antzfx.com/wp-content/uploads/2009/05/tinyurl-split.png" alt="tinyurl-split" width="450" height="102" /></a></p>
<p style="text-align: center;">This <em>tinyurl</em> redirects you to “www.fullfx.antzfx.com&#8221;</p>
<p><em>“ptl29z”</em> is the name of a folder (unique name randomly generated), that resides inside the root of <em>“tinyurl.com”</em>, with a single file called <em>“index.html”</em> containing the following data.<br />
<em></em></p>
<p><em>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta name=&#8221;description&#8221; content=&#8221;redirecting to the following url&#8221;/&gt;<br />
&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;0;url=http://www.fullfx.antzfx.com&#8221;/&gt;<br />
&lt;/head&gt;<br />
&lt;body bgcolor=#ffffff&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</em></p>
<p><strong>What does this leave you with?</strong></p>
<p><strong></strong>Nothing. Except an idea to make a fortune. <em>Tinyurl.com</em> has grown from mere redirection to toolbars, APIs and more. If you have the shortest URL in the world, well, this is your game.</p>
<hr/>
<p><strong>Epilogue</strong> : Eventhough tiny urls can be interesting, there has always been an ongoing debate upon its shady nature. In this Blogoscoped <a href="http://blogoscoped.com/archive/2004_06_14_index.html#108722926989347473">article</a>, the pros and con are discussed in detail.</p>
<img src="http://antzfxway.com/?ak_action=api_record_view&id=342&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://antzfxway.com/2009/05/17/tinyurls-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

