Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WinXP + Apache + Icecast2 (any thoughts)

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Liquid_Squelch



Joined: 11 Mar 2006
Posts: 56

PostPosted: Tue Jan 09, 2007 6:23 am    Post subject: WinXP + Apache + Icecast2 (any thoughts) Reply with quote

Hi all,

I don't know if I'm just talking crazy here, but I had an idea to keep people from leaching my live feeds, and I wanted to know if anyone has done the same.

I found a few websites that are hotlinking directly to my feed. I could setup authentication, but I have no knowledge of php. I could change my listen port from one to another, and setup a 2nd icecast server with a fallback mount to a mp3 explaining to my regular users that the feeds moved and check the homepage for the new link.... but, I would always have to keep moving.

So, I thought...why can't I use an Apache rewrite to help me out.
I can only allow referrals from my domain, and all other referrals will get the hotlink.mp3

So, I was thinking of installing Apache on my winxp box, which runs Icecast + Simplecast and Oddcast. While I'm at it, I could install AWStats or something like that.

Has anyone done this!??! Does this sound like trouble for someone that can't program to save his life (although, I was good at bat files).

I am behind a personal firewall (hardware and software), and my ISP blocks port 80, so will my Apache be safe?


Thanks guys, and KarlH for keeping this forum a true source for support
Back to top
View user's profile Send private message
Anonymous
Guest





PostPosted: Tue Jan 09, 2007 7:59 am    Post subject: Reply with quote

You don't have to know php to setup authentication. Install Apache and configure Apache to proxy to your feed URL and secure that URL using Apache. To be extra safe you can encrypt with SSL.

Listener -> http://www.yourhost/feed -> http://localhost:8000/stream

Proxy setup:
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html

Auth setup:
http://httpd.apache.org/docs/2.0/howto/auth.html

SSL:
http://httpd.apache.org/docs/2.0/ssl/

/Toni
Back to top
Liquid_Squelch



Joined: 11 Mar 2006
Posts: 56

PostPosted: Tue Jan 09, 2007 9:48 am    Post subject: Reply with quote

So here's a stupid question........

Instead of installing Apache on my Icecast box, can I use an .htaccess fie on my webhost to redirect?? (I'm being hosted by 1and1)

This way, someone would connect to say http://<my paid domain>/feed_dir which has a .htaccess fie that redirects to my localhost??

The only problem, probably, is you'll still be able to see my IP or no-ip host in an mp3 player, correct?? Or is it masked that way via an html rewrite??

Can you tell i'm new to Apache/htaccess Rolling Eyes
Thanks again.
Back to top
View user's profile Send private message
Anonymous
Guest





PostPosted: Tue Jan 09, 2007 10:29 am    Post subject: Reply with quote

You can't put a .htaccess file in a directory and then proxy this URL to somewhere else. The authentication will then not take action. You must protect the URL inside the Apache conf file and proxy the same URL.

If you proxy the URL the users cannot see the IP to where they are proxied because they will always go via the IP of the proxying Apache server.

If you don't have access to the configuration of your hosting webserver you cannot do this.

/Toni
Back to top
Liquid_Squelch



Joined: 11 Mar 2006
Posts: 56

PostPosted: Tue Jan 09, 2007 9:12 pm    Post subject: Reply with quote

tonjac wrote:
You can't put a .htaccess file in a directory and then proxy this URL to somewhere else. The authentication will then not take action. You must protect the URL inside the Apache conf file and proxy the same URL.



Thanks Toni

I'm hoping that by asking these questions, there may be someone else out there that may want to try this, and I'd be saving him/her some troubles!

Let's say I'm not worried about authentication, since a redirect will be enough for me.

I setup a subdomain on my server, which is basically a shortcut to a folder inside my main domain. For example: radio.domain.net and my webdirectory would be domain/radio (this is the easy part)

Is there a way, that I can place an .htaccess file in my domain/radio directory that proxies out to my local computer at home (here-by called localhost)

So, if someone tries radio.domain.net/feed1 they will go to localhost:<port>/feed1.m3u
Likewise radio.domain.net/feed2 would yield a redirect to localhost:<port>/feed2.m3u

I would not worry about authentication, because I'd be killing hotlinks to my feeds via the htaccess file in my domain/radio directory

My problem is, I've been reading htaccess config files all night, and can't figure this one out. I'll I know is I need a [P] flag at the end of the rule to enforce a proxy.

About the only part of the htaccess file I understand is the referral part.
Can someone help me with the redirecting??

I know the mod_rewrite is working on my host because I have custom error pages.
Thanks again... I hope you can help me on this step.
Phil
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber