Forum Moderators: coopster
I play in a band, and we have a CD coming out soon. We have around 23 songs, so we are going to have the B-Sides for our album accessible online if you buy our CD. What I would like to be able to do is have a small program pop up when the CD is inserted (probably Flash) and a user can download any of the B-Sides he or she wants. The problem is, I don't want anyone to be able to access the B-Sides without the CD. I don't want access to be possible just be entering the url of a song in the address bar of the browser. The initial programming for the Flash interface is pretty easy, and I've pretty much taken care of that. The part I'm stumped on is preventing access.
From what I've read and examples I've found, it looks like using php would be a good way to do this, but I have no idea what I'm doing.
Any help is greatly appreciated.
But here's my idea ...
You might be able to change the user-agent in your flash program, then restrict access to specific files or directories with Apache based on that user-agent string.
Of course, there's probably still ways around that ... but who knows ....
Good luck,
-sned