![]() |
Who uses Lightppd streaming in members area?
My host set me up with Lighttpd pseudo streaming for mp4s in my member site but I have a security concern and question for anybody who might be using it. Streaming works with jwplayer but since my content is protected with htaccess you can copy and paste the location of my file from the html page source into a browser and download my mp4s without logging in.
The file location variable includes port :81 and since Lighttpd doesn't support htaccess the mp4 will download without any security blocking it. Just curious if anyone using Lighttpd knows of a solution to prevent this security hole? |
Have your host set you up with wowza, then use a security token.
|
Quote:
Two solutions, 1) Install mod_h264 and mod_flv into apache and just stream using apache behind your htaccess 2) Setup mod_secdownload in lighttpd to make protected downloads links |
http://redmine.lighttpd.net/wiki/lig...ModSecDownload like konrad said
wowza is fine but lighttpd is free |
Quote:
|
there must be total protection, so nobody else can access your vid expect player
|
Quote:
Anyhow, this guys best solution is just to drop lighttpd completely and install mod_h264 and mod_flv right into apache so that everythign is behidn his htaccess and safe. |
Quote:
I initially was going to go with wowza but my host recommended lighttpd but I guess you get what you pay for. |
Quote:
Borked is the guy who fixed that issue for me on wowza, but he's not around much these days. |
Lighttpd is for tiny files, thumbnails, when the server admin doesn't know about "noatime". In no case will it provide any benefit whatsoever on large files such as videos. For files over 200K, the only difference between lighttpd and Apache is that Apache had had about 10 years worth of improvements and bug fixes since the lighttpd fork.
In other words, if it's not thumbnails you're serving OR if you simply use noatime, all that lighttpd gives you is bugs, problems, and reduced performance from tuning twice as much software as you should. |
All around good info here. :thumbsup
|
I asked my host about not using lighttpd and just going with apache and installing mod_h264. They said it would cause some extra load on apache and I'd also have to upgrade to a newer version. If anyone is using mod_flv and mod_h264 with apache I'm curious what the impact is on your server.
I also realized that since I have 100's of mobile videos in the mp4 format those too could be downloaded for free by just adding a :81 after my domain name using lighty and bypassing apache security. I could possibly encrypt every single mp4 link I have on my site using mod_secdownload but that doesn't seem right. Still looking for that streaming solution. |
Quote:
if we had separate servers just for streaming, we would probably use lighttpd, but we serve pages and media from the same boxes. youtube uses lighttpd and so does facebook. . |
Quote:
|
Does strongbox prevent any of the free downloading capability? Or can people just reacharound? It seems to be preventing unless session is active..
We run mp4 for streaming and downloading on apache... |
Quote:
designed for tiny files (lighttpd) in order to serve very large files (videos) will make very hard to integrateproper security between the two, though. We ran the tests, though, ran the test, looked at the code, adjusted configuration - there's simply absolutely no reason at all to run lighttpd on videos. As a matter of fact, when serving videos, 99.999% of the time will be spent transferring the video to the user. The roughly 12 milliseconds spent in server code is nothing compared to the minutes spent transferring the video. Consider this. Let's set up the best possible situation for lighttpd: Let's just say that your server admin doesn't know about "noatime", so Apache is correctly updating the atime while lighttpd falsifies it - that's the situation where lighttpd can appear faster. Let's say that let's lighttpd spends 15% less processing time that Apache. Not that it actually does, but let's pretend we believe the lighttpd promoters. Both servers run their processing, then hand it off to the OS to send the actual video via sendfile(). Let's say Apache is poorly configured so it spends 12 milliseconds processing before handing it off to sendfile. At 15% less lighttpd saves 3 milliseconds, if you believe their claims. Playing the video takes what, five minutes? Wow you've saved 3 milliseconds on a five minute video! That'll sure help! That's a 0.0005% improvement. Wow. Actually, though, by running two different web servers, they are competing for resources such as cache RAM, so you've actually just knocked your performance down. On the other hand, consider a thumbnail that only takes 10 milliseconds to transfer. Saving a couple of milliseconds of processing time makes sense, there, if you don't know to just friggin use the noatime setting. |
Quote:
regarding the posters question, how does strongbox prevent using a program like Replay Media Catcher or even easier prevent a user from grabbing the url of the file from the source and downloading it directly? i dont know much about your product, except that when we built PornCMS we decided to use in-page logins like all the major social sites. strongbox uses its own login page and requires an htaccess controlled members folder. . |
Quote:
I'd need to look through the mod_h264 source to give precise answers about protection, but my understanding is that most of the Apache hooks run, so it's protected much like http through Apache. If some adjustments are needed, we're quite familiar with designing and coding Apache modules. Apache 2.2 has some real advantages there compared to the old Apache 1.3 code underlying lighttpd. Replay is another thing entirely. Assuming you allow them access to the video, making it impossible to save requires significant changes and in fact no currently available systems do that too well. You're basically talking DRM there and as we know DRM pretty much failed. However, several years ago we created a solution for a university that we'll be adapting for the public internet. The university system was based on maintaining the encryption even through RAM, only decrypting it on the video card itself. Therefore no program running within the OS could get the media. Watch for an announcement on that soon. If you happen to know any, we need some good Flex programmers to help implement the new version of that system. These posts were typed on my phone, so please excuse any typos. |
Quote:
ya until the find a way to prevent stream capturing i haven't focused too much on protecting streams. i mean, you can even save cam streams with replay, so no video is safe on any site. |
Quote:
|
Quote:
|
All times are GMT -7. The time now is 05:55 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123