<?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>Fri, 10 Feb 2012 12:12:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Massagames</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-977352</link>
		<dc:creator>Massagames</dc:creator>
		<pubDate>Thu, 27 Oct 2011 05:41:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-977352</guid>
		<description>Returns true if the current swf is hosted on an host1, host2, host3 domain, false otherwise

function testSiteLock():Boolean {
var siteLock:RegExp = /^http:\/\/([-a-zA-Z0-9\.])+\.(host1&#124;host2&#124;host3&#124;emanueleferonato&#124;massagames)\.com(\/&#124;$)/;
return siteLock.test( loaderInfo.url );
}</description>
		<content:encoded><![CDATA[<p>Returns true if the current swf is hosted on an host1, host2, host3 domain, false otherwise</p>
<p>function testSiteLock():Boolean {<br />
var siteLock:RegExp = /^http:\/\/([-a-zA-Z0-9\.])+\.(host1|host2|host3|emanueleferonato|massagames)\.com(\/|$)/;<br />
return siteLock.test( loaderInfo.url );<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: online games</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-960860</link>
		<dc:creator>online games</dc:creator>
		<pubDate>Sat, 08 Oct 2011 14:05:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-960860</guid>
		<description>Coca Cola is bad for your health, it actually is one of major contributors to adrenal exhaustion. Sugar in general is. So you might want to remove that evil donation Coca Cola advertisement and people actually might donate more to you.</description>
		<content:encoded><![CDATA[<p>Coca Cola is bad for your health, it actually is one of major contributors to adrenal exhaustion. Sugar in general is. So you might want to remove that evil donation Coca Cola advertisement and people actually might donate more to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-853399</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 14 Jun 2011 19:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-853399</guid>
		<description>Emanuelle, or someone else talk me through the best way to sitelock my game?
I&#039;d be glad to put a link to you for a month from whackyourboss.com. It gets
around 5000 visits per day. I can send you traffic in thanks.
Best Tom</description>
		<content:encoded><![CDATA[<p>Emanuelle, or someone else talk me through the best way to sitelock my game?<br />
I&#8217;d be glad to put a link to you for a month from whackyourboss.com. It gets<br />
around 5000 visits per day. I can send you traffic in thanks.<br />
Best Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ab</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-666770</link>
		<dc:creator>Ab</dc:creator>
		<pubDate>Mon, 25 Oct 2010 16:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-666770</guid>
		<description>@29 (Ken)
You have a nice sample code for Step 1 ?</description>
		<content:encoded><![CDATA[<p>@29 (Ken)<br />
You have a nice sample code for Step 1 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ken</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-587846</link>
		<dc:creator>ken</dc:creator>
		<pubDate>Wed, 09 Jun 2010 00:40:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#comment-587846</guid>
		<description>Step 1. Put a secret function within the flash that grabs their domain information and have it send to your database and a page that displays all thief sites.

Step 2. Put copyright / owner information pertaining to your game or movie where it cannot be overlooked by viewers.

Step 3. Put your flash on the web.

Step 4. Use the web info to report their site for theft of copyrighted materials to their domain host.

This may not work immediately if the host &quot;doesn&#039;t care&quot;, but I&#039;m sure with proper legalese and talk of &quot;getting lawyers involved&quot; they&#039;ll pull the site and/or warn the client.

I contacted my own host (godaddy) on this issue and they conferred that they would pull the thief site until they remove the copyrighted materials.</description>
		<content:encoded><![CDATA[<p>Step 1. Put a secret function within the flash that grabs their domain information and have it send to your database and a page that displays all thief sites.</p>
<p>Step 2. Put copyright / owner information pertaining to your game or movie where it cannot be overlooked by viewers.</p>
<p>Step 3. Put your flash on the web.</p>
<p>Step 4. Use the web info to report their site for theft of copyrighted materials to their domain host.</p>
<p>This may not work immediately if the host &#8220;doesn&#8217;t care&#8221;, but I&#8217;m sure with proper legalese and talk of &#8220;getting lawyers involved&#8221; they&#8217;ll pull the site and/or warn the client.</p>
<p>I contacted my own host (godaddy) on this issue and they conferred that they would pull the thief site until they remove the copyrighted materials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis &#124; headjump.de</title>
		<link>http://www.emanueleferonato.com/2008/03/10/how-to-sitelock-a-flash-movie/#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-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-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-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-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>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.050 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-10 22:35:20 -->
