I have a large database of flash clips on my website. The thing is that people can just view the page source, then find out the source of the flash file, and then download the flash file by displaying a link to the .swf file and clicking "save target as." They can also hotlink to my flash files and eat-up my bandwith.
So I want to do 2 things. 1st, I want to disable people from downloading my .swf files to their computer (or atleast make it more difficult for them to do so).
2nd, I want to disable hotlinking of my .swf files.
MediaLayer, LLC - www.medialayer.comLearn how we can make your website load faster, translating to better conversion rates for your business!
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business
You cannot. Because the other way - it is in their temporary cache if they really want the file. It is basically like images - if you do not want someone taking it, don't put it on the web. There will always be a way around it no matter what
And once it is displayed in the browser, a local copy of the .swf file is in the temporary internet files folder.... Many people just copy that one to another folder, no need to view page source or anything...
Agreed. When you are accessing a website, you are downloading all the contents to your internet temp folder, including images, html, and swf.
Originally posted by jamesyeeoc And once it is displayed in the browser, a local copy of the .swf file is in the temporary internet files folder.... Many people just copy that one to another folder, no need to view page source or anything...
Dixiy.com - Professional Web Hosting Provider since 2002 AutoCreation.net - Automation Solution for cPanel Hosting! + Illegal File Scanner WHDir.net - Your complete Web Hosting Directory with Hosting/Server Tutorials
You can also copy the link and put it in a local HTML file as a link, and download the file that way (right click -> save as) ... You *could* disable hotlinking if there is no referer, but you'll alienate users who have (modern) firewalls, privacy settings, etc that may hide the referer data.
I've seen this one, (and bypassed it) You could also have your flash content check for the existance of another flash file, and if it cant find it, it doesnt run it. Useful for people who think downloading/looking in the cache for the main flash file will allow them to run it. Now the necessary file will be in the cache, but who will think of looking at all the files in their cache to use something they *think* was only blah.swf because it is what was in the address bar.
Running apache locally, and putting the file in the htdocs folder and accessing it via your local server and reading the error log will allow a user to find out what all files they'll need to get off the server... Many browsers arent this savvy or determined to get content though, but it does show that if someone wants something, they can get it...