| View previous topic :: View next topic |
| Author |
Message |
Liquid_Squelch
Joined: 11 Mar 2006 Posts: 56
|
Posted: Tue Jan 09, 2007 6:23 am Post subject: WinXP + Apache + Icecast2 (any thoughts) |
|
|
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 |
|
 |
Anonymous Guest
|
|
| Back to top |
|
 |
Liquid_Squelch
Joined: 11 Mar 2006 Posts: 56
|
Posted: Tue Jan 09, 2007 9:48 am Post subject: |
|
|
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
Thanks again. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Tue Jan 09, 2007 10:29 am Post subject: |
|
|
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
|
Posted: Tue Jan 09, 2007 9:12 pm Post subject: |
|
|
| 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 |
|
 |
|
|
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
|