Very clever code, thanks...

Does anyone know about the technique of outputting the swf through 
server side scripts?

Jim Berkey wrote:

>A little bit of actionscript can do that.
>Heres a little game you can play in a browser window on my site, but cannot 
>play in a browser window on any other url, or from any local hard drive:
>http://jimbo.us/Games/WordSearch.html
>http://jimbo.us/Games/WordSearch.swf
>
>Does this do what you want?
>Code on first frame:
>
>protocol = _url.substr(0, _url.indexOf(":"));
>if (protocol == "file") {
> message = "It seems you are trying out this game on your local hard disk. 
>This game will only work if played on Jimbo.us - Press 'Esc' to close.";
>} else if (protocol == "http") {
> doubleSlash = _url.indexOf("//");
> server = _url.substr(doubleSlash+2, _url.indexOf("/", 
>doubleSlash+2)-doubleSlash-2);
> server = server.toUpperCase();
> if (server.indexOf("WWW.") != -1) {
>  server = server.substr(server.indexOf("WWW.")+4, server.length);
> }
> // end if
> if (server.indexOf("JIMBO.US") != -1) {
>  gotoAndStop(3); // this is the real 'first frame' of the content
> } else {
>  message = "Hey Dood! This movie\'s copyrights are being infringed! A 
>message is being sent to the author that you have copied his work. 
>\nOffending website path: "+_url;
> }
>}
>
>code on second frame, with a dynamic text box instance name 'message'
>stop();
>
>----- Original Message ----- 
>From: "Marcelo de Moraes Serpa" <[EMAIL PROTECTED]>
>To: <[email protected]>
>Sent: Friday, February 10, 2006 12:00 PM
>Subject: [osflash] SWF protection techniques
>
>
>Well, I know this is an fairly old question, but I´ve never really seen
>any definitive solution for this problem at all and I´m not sure there
>is one. Now that my application is near deploying, I would be grateful
>if anyone could point me to techniques (server and client-side) on how
>could I protect them from stealing and restrict public vieweing (for
>example:  if I only want the SWF to be viewed inside the HTML container
>- don´t allow the user to browse the swf alone, maybe putting the swf on
>a non-public dir, but then I guess I would need to use a php script to
>wrap the movie So the html could open it?)...
>
>- Marcelo.
>
>
>
>
>
>_______________________________________________________
>Yahoo! doce lar. Faça do Yahoo! sua homepage.
>http://br.yahoo.com/homepageset.html
>
>
>
>_______________________________________________
>osflash mailing list
>[email protected]
>http://osflash.org/mailman/listinfo/osflash_osflash.org 
>
>
>_______________________________________________
>osflash mailing list
>[email protected]
>http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>  
>


                
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to