I'm trying to play video's on site, but I want to hide the location of the video/embed video url. can you do it using php or javascript or any other programming. if yes then pls let me know how can i do?
Using php u can hide it, hell, not just hide it but also block people who are smart enough to figure out the video source file ... its long coding and I am not sure, if anyone here can help u write a huge logical code... try searching some blogs....
Hi, you can do it using javascript. Several solutions are possible: 1. You can use encrypted javascript in an external file to generate the whole flash embed code 2. You could use .js to overwrite some default fake path and load swf with the real path 3. You could use .htaccess to prevent/forbid direct access to the resource . swf . i.e - copy-paste i the browser will return an error
You could always use apache's mod_rewrite extension to put in a "fake" address and have the real address stored inside the .htaccess file with the RewriteRule. This file is inaccessible by anything but the linux user itself so would be the most hidden I could make a link off the top of my head. This would however mean people could take the "fake" link to gain acces...However you can ensure that this also would fail by using the apache server variable REQUEST_URI and using this to make sure it only reveals the true URL if it has come from your page, not directly etc...