I want to know how to hide real media files in real player so that the user cant just copy the link in the location toolbar of real player or they cant just open up a ram file with notepad to look at the link. I know a website that has done this already but i am not sure how.
Basically when u click on a link on their website such as
www.server.com/play.php?song=songname
real player opens up and starts playing the song. The link shown in location toolbar is the one I clicked on.
If u download this link with anything other than realplayer it generates a ram file called songname.ram .
If u then open this file with notepad u see a link to another php script such as
www.server.com/play2.php?song=songname
If u open this second link in real player it works fine but if u try to open it with anything else it just outputs a "1".
In other words the first php script generates a ram file that links to another php script that loads the rm file.
In the whole process the user does not see the link to the real ram (if any) or rm file.
I can understand the coding behind the first script that just uses http headers to generate the ram file but i am not sure how the second script works. I guess it checks for http_user_agent or something else to see if its realplayer. If it is anything else than just output a 1.
The reason i posted this message is because i could not write two scripts that gave the same results. If anyone has experience with real player and headers can u please reply.
Thanks.
I appreciate your help.