Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

password protection (.htaccess) and streaming mp3's

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  mod_rewrite, redirecting https  
Author Message
drake

External


Since: Jul 09, 2003
Posts: 3



(Msg. 1) Posted: Wed Jul 09, 2003 1:39 pm
Post subject: password protection (.htaccess) and streaming mp3's
Archived from groups: alt>apache>configuration (more info?)

Hey folks, just for the record this work in winamp.

I have an apache web server with an mp3 link that is password
protected. After authorization you can see the mp3's.
Click on a link and the little web engine I'm using (Zina)
automagically creates a .m3u for that single file and sends
it to you and then my xmms launches as if it's going to play it.
The problem is that xmms sends a popup saying:

"Couldn't connect to host www.mysite.com
Server reported: 401 Authorization Required"

It recieves the m3u as I can see the title of the song
in the xmms window.
Is there some special trick to make this work?

I can stream fine with xmms from, say, mp3.com
(which is not password protected).

Or is this a .htaccess problem?

The layout is:
/mp3/artist/album/song.mp3
the .htaccess is in /mp3
and says:

AuthType Basic
AuthName "MP3 Server"
AuthUserFile /var/www/html/passwords
Require user user1 user1

Anyone have any ideas?

Thanks a million!
-DrakeHey folks, just for the record this work in winamp.

I have an apache web server with an mp3 link that is password
protected. After authorization you can see the mp3's.
Click on a link and the little web engine I'm using (Zina)
automagically creates a .m3u for that single file and sends
it to you and then my xmms launches as if it's going to play it.
The problem is that xmms sends a popup saying:

"Couldn't connect to host www.mysite.com
Server reported: 401 Authorization Required"

It recieves the m3u as I can see the title of the song
in the xmms window.
Is there some special trick to make this work?

I can stream fine with xmms from, say, mp3.com
(which is not password protected).

Or is this a .htaccess problem?

The layout is:
/mp3/artist/album/song.mp3
the .htaccess is in /mp3
and says:

AuthType Basic
AuthName "MP3 Server"
AuthUserFile /var/www/html/passwords
Require user user1 user1

Anyone have any ideas?

Thanks a million!
-DrakeHey folks, just for the record this work in winamp.

I have an apache web server with an mp3 link that is password
protected. After authorization you can see the mp3's.
Click on a link and the little web engine I'm using (Zina)
automagically creates a .m3u for that single file and sends
it to you and then my xmms launches as if it's going to play it.
The problem is that xmms sends a popup saying:

"Couldn't connect to host www.mysite.com
Server reported: 401 Authorization Required"

It recieves the m3u as I can see the title of the song
in the xmms window.
Is there some special trick to make this work?

I can stream fine with xmms from, say, mp3.com
(which is not password protected).

Or is this a .htaccess problem?

The layout is:
/mp3/artist/album/song.mp3
the .htaccess is in /mp3
and says:

AuthType Basic
AuthName "MP3 Server"
AuthUserFile /var/www/html/passwords
Require user user1 user1

Anyone have any ideas?

Thanks a million!
-Drake

 >> Stay informed about: password protection (.htaccess) and streaming mp3's 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 2) Posted: Wed Jul 09, 2003 8:16 pm
Post subject: Re: password protection (.htaccess) and streaming mp3's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"drake" <drake.DeleteThis@no-spam.razorwire.us> wrote in message
news:pan.2003.07.09.00.39.27.821082@no-spam.razorwire.us...
 > Hey folks, just for the record this work in winamp.
::snip::
<font color=purple> > "Couldn't connect to host <a style='text-decoration: underline;' href="http://www.mysite.com</font" target="_blank">www.mysite.com</font</a>>
 > Server reported: 401 Authorization Required"
::snip::
 > I can stream fine with xmms from, say, mp3.com
 > (which is not password protected).

Sounds like xmms doesn't support authorisation.

It needs to supply a username & password when it starts downloading the mp3,
so it will need to get these details from somewhere. I would expect it to
pop up and ask for them when it spots the 401. If it doesn't then that isn't
apaches fault.

Richard.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: password protection (.htaccess) and streaming mp3's 
Back to top
Login to vote
drake

External


Since: Jul 09, 2003
Posts: 3



(Msg. 3) Posted: Thu Jul 10, 2003 11:50 am
Post subject: Re: password protection (.htaccess) and streaming mp3's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok, cool, thanks.
Just wanted to make sure I wasn't going crazy!
I saw a post in another forum that said it won't
work with xmms unless it's sent as <a style='text-decoration: underline;' href="http://user:pass@foo.com/foo.mp3" target="_blank">http://user:pass@foo.com/foo.mp3</a>
So, maybe in the next version...

Cheers!
-Drake

 > Sounds like xmms doesn't support authorisation.
 >
 > It needs to supply a username & password when it starts downloading the mp3,
 > so it will need to get these details from somewhere. I would expect it to
 > pop up and ask for them when it spots the 401. If it doesn't then that isn't
 > apaches fault.
 >
 > Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: password protection (.htaccess) and streaming mp3's 
Back to top
Login to vote
admin34

External


Since: Jul 01, 2003
Posts: 47



(Msg. 4) Posted: Sun Jul 13, 2003 1:41 pm
Post subject: Re: password protection (.htaccess) and streaming mp3's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

One question does xmms tell the user where the file is coming from?
If not why not have the m3u file sat there password protected with the mp3
in another non protected hidden directory.

Mike.

"drake" <drake RemoveThis @no-spam.razorwire.us> wrote in message
news:pan.2003.07.09.22.50.34.214740@no-spam.razorwire.us...
 >
 > Ok, cool, thanks.
 > Just wanted to make sure I wasn't going crazy!
 > I saw a post in another forum that said it won't
<font color=purple> > work with xmms unless it's sent as <a style='text-decoration: underline;' href="http://user:pass@foo.com/foo.mp3</font" target="_blank">http://user:pass@foo.com/foo.mp3</font</a>>
 > So, maybe in the next version...
 >
 > Cheers!
 > -Drake
 >
  > > Sounds like xmms doesn't support authorisation.
  > >
  > > It needs to supply a username & password when it starts downloading the
mp3,
  > > so it will need to get these details from somewhere. I would expect it
to
  > > pop up and ask for them when it spots the 401. If it doesn't then that
isn't
  > > apaches fault.
  > >
  > > Richard.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: password protection (.htaccess) and streaming mp3's 
Back to top
Login to vote
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 5) Posted: Sun Jul 13, 2003 2:32 pm
Post subject: Re: password protection (.htaccess) and streaming mp3's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Michael Forster" <admin.DeleteThis@muckworld.com> wrote in message
news:3f11253d@news.userve.net...
 > One question does xmms tell the user where the file is coming from?
 > If not why not have the m3u file sat there password protected with the mp3
 > in another non protected hidden directory.

Not very safe.

Richard.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: password protection (.htaccess) and streaming mp3's 
Back to top
Login to vote
drake

External


Since: Jul 09, 2003
Posts: 3



(Msg. 6) Posted: Mon Jul 14, 2003 12:09 pm
Post subject: Re: password protection (.htaccess) and streaming mp3's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Yes, it does.

Someone on the xmms board has told me that xmms
currently just doesn't work with password protected
directories. So, I guess I'm looking for a workaround
on the Apache side.

Whatever solution I go for, I need to make 100% sure
that the mp3's are protected. I want to be able to listen
to my music from anywhere I am, but don't want leechers
grabbing them or to get sued by the RIAA for leaving them
wide open.


On Sun, 13 Jul 2003 10:41:59 +0100, Michael Forster wrote:

 > One question does xmms tell the user where the file is coming from?
 > If not why not have the m3u file sat there password protected with the mp3
 > in another non protected hidden directory.
 >
 > Mike.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: password protection (.htaccess) and streaming mp3's 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
newbie question about .htaccess - I have a private website folder which I would like to password protect so I have followed the instructions on the Apache website and some other sites to write an .htaccess file. This results in a pop up box which asks for the username and password. The..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]