People hotlinking my flash files!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Katie22
Forum Newbie
Posts: 1
Joined: Sat Oct 14, 2006 11:14 am

People hotlinking my flash files!

Post by Katie22 »

I have a website with flash applications on it , but they are embedded from another site (mine).
How do I keep people from stealing my thunder and embedding my flash apps on their site?
plz help me. :cry:
Kate.
nickvd
DevNet Resident
Posts: 1027
Joined: Thu Mar 10, 2005 5:27 pm
Location: Southern Ontario
Contact:

Post by nickvd »

It's truly amazing what 5 seconds of searching can do...

http://www.google.ca/search?q=prevent+hotlinking
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

For flash files I've worked with in the past I import a PHP variable string. Make an md5 hash out of some string. Put it in a file name the file with some md5 hashed string. You check it in your actionscript. If it's there the movie plays if not no play. That'll not only prevent hotlinking but it'll also prevent people from playing it if its not on your server.
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

neophyte wrote:For flash files I've worked with in the past I import a PHP variable string. Make an md5 hash out of some string. Put it in a file name the file with some md5 hashed string. You check it in your actionscript. If it's there the movie plays if not no play. That'll not only prevent hotlinking but it'll also prevent people from playing it if its not on your server.
wow, that's actually kinda sexy. if i had video files that i did mind people taking i would totally do this
User avatar
Mordred
DevNet Resident
Posts: 1579
Joined: Sun Sep 03, 2006 5:19 am
Location: Sofia, Bulgaria

Post by Mordred »

That'll not only prevent hotlinking but it'll also prevent people from playing it if its not on your server.
Hmm, but would that prevent people from downloading the swf, decompiling it, removing your check and then compiling it again? :twisted:
User avatar
MrPotatoes
Forum Regular
Posts: 617
Joined: Wed May 24, 2006 6:42 am

Post by MrPotatoes »

Mordred wrote:
That'll not only prevent hotlinking but it'll also prevent people from playing it if its not on your server.
Hmm, but would that prevent people from downloading the swf, decompiling it, removing your check and then compiling it again? :twisted:
man if they went through all that effort for a lameass swf then have it. enjoy it. lmao
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Yep. It's always a tradeoff. I remember this one website that used blank gifs overlaid over an actual background image to prevent you from downloading the images: if you right-clicked and saved you'd just get a blank image. Of course, since we're tech-savvy, we can easily get around it, but the average user would be stumped.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

I thought this disscussion was about hotlinking or image burning?

There is nothing you can do to prevent people from copying your content onto their own desktop. Zip...natta...any technique you can come up with, I gaurantee you I can get around it - assuming I can see it in my browser window and it's not behind locked doors, so to speak. :P

Image burning is when one web site uses a file stored on your web site without your permission and their web site, thus using your bandwidth not their own. I don't think this is a common problem anymore as bandwidth is pretty cheap these days. :)

Cheers :)
Post Reply