View Full Version : php iframe security

12-27-2006, 06:50 PM
I have this link which passes a PHP variable of a track I want to play. There are several of these links in the page all with different variables being passed to an iframe.

<a href="mp3Player.php?track=http://www.buildrebuild.com/dirtyDeeds2.mp3" target="hydroponicPlayer">[PLAY]</a>

I know in javascript you can force the iframe to be opened with the parent frame even if someone tries to copy and paste the iframe URL into their location bar.
The javascript code is here...

Can PHP do the same thing and if so, does anyone know the code.


12-28-2006, 08:11 AM
Hi, you should try to map url with some code(i mean your defined url) that will in every request changed with this modification user even when get the url he wouldn't know the real path to song.