Hello all. I've glanced through the forum here and only found one post close to my problem I am having. But no solution to it. So I will ask my questions here. I have not used CPanel to often while keeping my site going. Once I got sohoadmin going I just pretty much do everything through that.
Here is my situation and problem.
My site is a place for me to post music that I write and create myself. Things are great and I have no problem uploading my songs in mp3 format and then creating pages with media players on them to play the songs.
I also created a webpage that has links for some of these songs to be downloaded only by people who are members of my site. I create a member and password (with sohoadmin), assign them the downloads page, and when they log in they go directly there and can download. I thought things were fine that way. That is until I realized yesterday that the system folder "media" (I assume system because I didn't create it) is wide open. If someone goes right to that folder by typing it they get no access, but, if they type it followed by "/song_name.mp3" there is the song for them to get to.
So I read up about using CPanel to do the password protect of a folder and I password protected the media folder. So then when I tried to access the media folder by typing (in the URL) followed by the song name, I got prompted for a password ... Perfect, I thought.
Then I went to my main page and clicked the Members Login box and logged in as one of my members. It took me to the download page. If I just clicked on the song title, it would try and play it, but ask me for a password (the one created by CPanel ... I only created one test user for the folder password). But if I right click and select "save target as" I was able to save the file so I am very happy with that. That works fine for me as the people are supposed to download the song, not really listen to it there.
BUT, when I went to a normal page on my site which has a media player with a song on it so people from anywhere can click on the player and listen, it promted me for a password. I don't want people to have to enter a password when they come to my site and want to listen to a song demo. That would be a pain.
As far as I can tell, all my song files are in this media folder. I use sohoadmin to upload the files and it doesn't give me an option as to where to put them when I upload.
So any ideas how I can protect my completed songs from general access (therefore a password), but still be able to have pages playing the demo songs without passwords?
This all started because I was trying to setup the shopping cart to enable a download of one of the completed songs after a purchase.
Sorry for the long post, just trying to make sure folks understand what I am trying to do here.
Thank you for any help with this, James.



LinkBack URL
About LinkBacks
Reply With Quote





