![]() |
Is there anyway to stop people from hotlingking flash files?
I got hijacked by chinese leachers. need help asap..
|
just flash?
|
setup some streaming instead... simple php streaming can do the trick for most hotlinking.
|
Quote:
|
Can't you have your host block the requesting referrers?
|
make your site the only referral. also would block chinese ips.
|
Quote:
|
YEah there is. We had the same issue. Our host did something about it. Like a htaccess kinda thing
|
You can use referral blocking (mod_rewrite type of stuff) and it's generally "good enough" for a casual deterrent.
However, many browsers do *not* send a refferer header string for flash movie content, thus you cannot truly rely on it. Most sites won't bother hotlinking though, when 30-60% or whatever traffic doesn't get a good pageload. The best way to do it is via secure download tokens, like lighttpd's mod_securedownload and about 5,000 others. Basically, you have your PHP code generate a link to the movie with a hash, using a shared secret. Your webserver then checks to ensure that this hash is valid prior to serving the file in question. If both the PHP and the static files (.flv) are hosted on the same webserver instance, you can use a myriad of off-the-shelf anti-hotlink products. Nearly anything on the market. If they are hosted elsewhere, most products will no longer work - and you'll want something like the hash sharing mechanism outlined above. As for PHP "streaming" - yeah, if you want to do about 1/100th of what the server can actually push, sure :) Running static files through PHP is a horrible idea, unless you simply don't have enough traffic for it to matter and it's the easiest solution for your particular developers. Regards, -Phil |
Try this:
Code:
RewriteEngine On |
Quote:
i use a similar code on all of our servers for mainly jpg's and gif.. to keep bandwidth down.. |
Quote:
|
Listen to Phil21..
He's the one who PERSONALLY helped me and fixed our problem. |
Quote:
|
i was thiking htaccess but Phil21 seems to have a better way for sure.
|
Quote:
(FYI: the yoursite.com is the site(s) you will allow to hotlink) (instead of using it in htaccess i use it in a separate server-wide rules file..) |
Quote:
|
All times are GMT -7. The time now is 07:03 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123