![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Registered User
Join Date: Jul 2007
Posts: 11
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Have your host set you up with wowza, then use a security token.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
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
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
http://redmine.lighttpd.net/wiki/lig...ModSecDownload like konrad said
wowza is fine but lighttpd is free |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
That hides the path if typed in or from a ripper?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
Because they never made it support it...
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.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Registered User
Join Date: Jul 2007
Posts: 11
|
Quote:
I initially was going to go with wowza but my host recommended lighttpd but I guess you get what you pay for. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Registered User
Industry Role:
Join Date: Jul 2003
Location: Encrypted. Access denied.
Posts: 31,779
|
Quote:
Borked is the guy who fixed that issue for me on wowza, but he's not around much these days. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
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.
__________________
For historical display only. This information is not current: support@bettercgi.com ICQ 7208627 Strongbox - The next generation in site security Throttlebox - The next generation in bandwidth control Clonebox - Backup and disaster recovery on steroids |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Aug 2003
Location: Vegas and Los Angeles
Posts: 2,122
|
All around good info here.
![]()
__________________
The Only Time When Success Comes Before Work Is In A Dictionary. Did you ever notice: When you put the 2 words 'The' and 'IRS' together it spells 'Theirs.' |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Registered User
Join Date: Jul 2007
Posts: 11
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
bored
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
|
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. .
__________________
# ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
Quote:
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
So Fucking Banned
Industry Role:
Join Date: Jun 2010
Location: Tokyo Red Light District
Posts: 2,145
|
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
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.
__________________
For historical display only. This information is not current: support@bettercgi.com ICQ 7208627 Strongbox - The next generation in site security Throttlebox - The next generation in bandwidth control Clonebox - Backup and disaster recovery on steroids |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
bored
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
|
great technical comparison between h264 and lighttpd lol
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. .
__________________
# ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 | |
Confirmed User
Join Date: Oct 2002
Posts: 3,745
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
bored
Industry Role:
Join Date: Aug 2003
Location: Metaverse
Posts: 4,675
|
lol thats a lot to type on a phone.
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.
__________________
# ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
...
Industry Role:
Join Date: Apr 2003
Posts: 2,280
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
That's not nessesarily possible. He'd have to add code to generate the mod_secdownload links into his cms, which may be zend/ioncube encoded. I still stand behind mod_h264/mod_flv behind htaccess or strongbox as being the best choice as it requires no intervention into his existing system. RTMP streaming is also a good choice here but the costs may be prohibitive unless he uses Red5 which from what i've seen isn't very good.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |