<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to sitelock a Flash movie</title>
	<atom:link href="http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Thu, 11 Mar 2010 10:43:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dennis &#124; headjump.de</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-481393</link>
		<dc:creator>Dennis &#124; headjump.de</dc:creator>
		<pubDate>Wed, 05 Aug 2009 20:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-481393</guid>
		<description>Hi there,
it&#039;s really important to understand (what was already said) that the code in the post won&#039;t prevent embedding the swf from an allowed host to ANY webpage. The &quot;window.location&quot; is the right idea there, BUT you have to use:

window.top.location

because window.top refers to the &quot;most top&quot; window, e.g. if your allowed domain is &quot;allowed.com&quot; and the evil domain &quot;evil.com&quot; just puts an iFrame on their site that contains the page from &quot;allowed.com&quot; with the game, window.location will say &quot;allowed.com&quot;, but window.top.location will reveal &quot;evil.com&quot;.

- Dennis</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
it&#8217;s really important to understand (what was already said) that the code in the post won&#8217;t prevent embedding the swf from an allowed host to ANY webpage. The &#8220;window.location&#8221; is the right idea there, BUT you have to use:</p>
<p>window.top.location</p>
<p>because window.top refers to the &#8220;most top&#8221; window, e.g. if your allowed domain is &#8220;allowed.com&#8221; and the evil domain &#8220;evil.com&#8221; just puts an iFrame on their site that contains the page from &#8220;allowed.com&#8221; with the game, window.location will say &#8220;allowed.com&#8221;, but window.top.location will reveal &#8220;evil.com&#8221;.</p>
<p>- Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flashtoo</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-479186</link>
		<dc:creator>Flashtoo</dc:creator>
		<pubDate>Fri, 31 Jul 2009 17:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-479186</guid>
		<description>NewGrounds uses uploads.ungrounded.net, not uploads.undergrounded.net .</description>
		<content:encoded><![CDATA[<p>NewGrounds uses uploads.ungrounded.net, not uploads.undergrounded.net .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Internet Hobo</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-447888</link>
		<dc:creator>Internet Hobo</dc:creator>
		<pubDate>Wed, 13 May 2009 00:31:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-447888</guid>
		<description>Somebody could get around this by adding a query string with ?_url=http://www.gooddomain.com or something though when they embed the file. Is there some way to determine where the swf is actually embeded?</description>
		<content:encoded><![CDATA[<p>Somebody could get around this by adding a query string with ?_url=http://www.gooddomain.com or something though when they embed the file. Is there some way to determine where the swf is actually embeded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dino</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-420954</link>
		<dc:creator>dino</dc:creator>
		<pubDate>Thu, 02 Apr 2009 00:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-420954</guid>
		<description>Wouldn&#039;t it be better to drop the split and just check if the beginning is equal to &quot;http://www.mydoamin.com/&quot;?</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t it be better to drop the split and just check if the beginning is equal to &#8220;http://www.mydoamin.com/&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dino</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-420945</link>
		<dc:creator>dino</dc:creator>
		<pubDate>Thu, 02 Apr 2009 00:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-420945</guid>
		<description>How can you be sure www or even http is always included?

I never type www when going to a website.</description>
		<content:encoded><![CDATA[<p>How can you be sure www or even http is always included?</p>
<p>I never type www when going to a website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-397512</link>
		<dc:creator>Jan</dc:creator>
		<pubDate>Fri, 27 Feb 2009 08:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-397512</guid>
		<description>------------------------------------
----------Emanuele Feronato---------
------------------------------------
You are Great!!!!!!!!!!!!!!!!!!!!!!
many thanks to you and others like you.

Netherlands</description>
		<content:encoded><![CDATA[<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
&#8212;&#8212;&#8212;-Emanuele Feronato&#8212;&#8212;&#8212;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
You are Great!!!!!!!!!!!!!!!!!!!!!!<br />
many thanks to you and others like you.</p>
<p>Netherlands</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Excit: Post-Mortem &#124; Game Reviews, Game Download, Computer Games</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-384756</link>
		<dc:creator>Excit: Post-Mortem &#124; Game Reviews, Game Download, Computer Games</dc:creator>
		<pubDate>Sat, 07 Feb 2009 06:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-384756</guid>
		<description>[...] were were completely oblivious about how the flash game business works. We didn&#8217;t implement a sitelock, we didn&#8217;t implement Mochiads, we didn&#8217;t implement Mochibot, we didn&#8217;t even [...]</description>
		<content:encoded><![CDATA[<p>[...] were were completely oblivious about how the flash game business works. We didn&#8217;t implement a sitelock, we didn&#8217;t implement Mochiads, we didn&#8217;t implement Mochibot, we didn&#8217;t even [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-384523</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 07 Feb 2009 00:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-384523</guid>
		<description>Hey there, if anyone needs an Actionscript 3 version of this tutorial, I&#039;ve written one on my blog - http://notejot.com/2009/02/sitelocking-an-actionscript-3-flash-game/</description>
		<content:encoded><![CDATA[<p>Hey there, if anyone needs an Actionscript 3 version of this tutorial, I&#8217;ve written one on my blog &#8211; <a href="http://notejot.com/2009/02/sitelocking-an-actionscript-3-flash-game/" rel="nofollow">http://notejot.com/2009/02/sitelocking-an-actionscript-3-flash-game/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-366848</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Mon, 05 Jan 2009 10:42:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-366848</guid>
		<description>ACTUALLY try this
browserurl = flash.external.ExternalInterface.call(&quot;function(){return window.location.href}&quot;).toString();</description>
		<content:encoded><![CDATA[<p>ACTUALLY try this<br />
browserurl = flash.external.ExternalInterface.call(&#8220;function(){return window.location.href}&#8221;).toString();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/comment-page-1/#comment-366845</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Mon, 05 Jan 2009 10:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-366845</guid>
		<description>flash.external.ExternalInterface.call( &quot;function get_url() { return window.location.toString(); }&quot; )

what about this ?</description>
		<content:encoded><![CDATA[<p>flash.external.ExternalInterface.call( &#8220;function get_url() { return window.location.toString(); }&#8221; )</p>
<p>what about this ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
