Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd July 2008, 10:41
phase phase is offline
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache, SWF, MP3 and hotlinking

Hi

I have a big problem with one of my servers and a great amount of bandwidth wasted by the hotlinking. This server is running Apache 2.0 for bring MP3 files, this MP3 files are played by a SWF player.

Well, in this point everything is OK... I though in stop hotlinking with the typical Mod_Rewrite module and his rules, but in this case, unfortunately, it doesnt work because of HTTP REFERERS.

I tried block every petition without HTTP REFERER, but it affect some browsers...

Someone know a module, server or way of fix it?

If it cannot be fixed with the traditionals methods, perhaps could be possible fix it using PHP code.

I have another problem; This server cannot use authentication or login for play MP3

Any suggestion is appreciate!

Thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 23rd July 2008, 18:47
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

I'd place the files outside the document root and then use a PHP script to stream them to the Flash player.
There's a tutorial that's very similar to what you do, but it's for lighttpd and flv files: http://www.howtoforge.com/video_stre...tpd_flowplayer
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.