![]() |
FLV Hotlinking Protection & File Management Help
Hey everyone,
I would like to ask for help on two things, especially to those who own tube sites and those who have video galleries. The first one being if you guys know of a simple and effective way to protect myself from leechers hotlinking my FLV files to avoid bandwidth issues. Please note that I'm not a geek so I'm looking something easy to understand and implement. The second being, if there is a recommended way to sort the FLV files. I have seen some sites having their FLV in the same directory as their gallery or on a dedicated directory or subdomain for FLV files. For the moment I only have around 150 videos with around 20-25 being more than 10Mb. Most of them are trailers but there are quite a few that are samples taken from FHG. Among them, about 50-75 are hosted FLV files offered by sponsors. I would highly appreciate any pointers and directions on what to do and how to do. :) |
FLV files can be easily protected using htaccess.
Code:
RewriteCond %{HTTP_REFERER} !^$ [NC] |
Quote:
|
Can you post an example?
|
Quote:
http://www.pimpinangelz.com/test.html Here is the code I have in my .htaccess file: Code:
RewriteCond %{HTTP_REFERER} !^$ |
1 Attachment(s)
Quote:
http://www.greenguysboard.com/board/...1&d=1263832757 |
First issue, your embedding is wrong for IE. IE doesn't support embedding the same way that Firefox/Safari does. The video does play for me in Firefox, but does not play in Safari or Chrome. Since Safari/Chrome are based on webkit, I would suspect something is wrong with the embedding code. I don't have IE to test, but, I am 95% sure that you need the
|
Ok, I have just updated the player.swf and the swfobject.js file to the latest. I have also updated the embeddable code for the video.
I have done testing on my side and the hotlink protection is working under IE, Chrome and Opera. It doesn't work under Firefox or Safari as I was able to play them. Quote:
Quote:
On the actual site, the path to the video is a relative path and not a URL. Quote:
|
1 Attachment(s)
Quote:
I just tried it again after refreshing the page to be sure I had the latest. I tried it just now in Mac Firefox and then movie does play so it seems that your hot linking doesn't work in Firefox but you already knew that. http://www.greenguysboard.com/board/...1&d=1263844123 |
Quote:
Yes. I have tried Firefox and the hotlink protection doesn't work. As I understand, either Firefox doesn't pass a referrer either the flash player doesn't pass a referrer in Firefox. |
Quote:
I don't know if you are making your own FLVs or someone else is providing them but if you are making them you could do what I do and make them mp4 files instead of FLV and embed the mp4 in your Flash player. Like I did in this test page. |
Quote:
|
Another benefit of using mp4 is you can make the same file available for iPods, iPhones, etc. if you want to. Like on this tour page.
(I have multiple optimized files available for download on that page but the only one that is really needed is the one labeled QuickTime as that will also play on iPods and iPhones. The QuickTime one is the same mp4 that is embedded into the Flash player.) |
Do you have access to the raw logs provided by apache?
If so, if those pages are not that active, maybe post the logs for anything referring to that .flv and the page and we might be able to figure out why it might not be working. First test would be to disable the rules to see if it does work in all of the browsers, ensuring that the encoding is indeed correct. Once you've done that, reinstate the rules, see what breaks. Then, post the raw logs of the failed requests and perhaps we can see a pattern. |
Quote:
|
I did some further searching and I found this code posted on Digital Point. What are your opinions?
Code:
$filename="/path/to/your/file.flv"; http://forums.digitalpoint.com/showp...58&postcount=5 |
Good tip
Quote:
|
All times are GMT -4. The time now is 08:20 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc