6 Years
Discussion Span
Last Post by jeevanism

try this

$userinput = "hi.wmv";
echo '<a href="showvideo.php?video=', urlencode($userinput), '">';

have you tried doing it on .htaccess?

given: actualDirectory and dummyDirectory.

If we provide a link in this form <a href="YourDomainDotCom/dummyDirectory/somevideo.wmv" target="_blank"/>Download Here</a>, then we can add a simple entry to our .htaccess like this;

Redirect /dummyDirectory/ http://YourDomainDotCom/actualDirectory/

If they view the source code of the page, they will only see this <a href="YourDomainDotCom/dummyDirectory/somevideo.wmv" target="_blank"/>Download Here</a> , and NOT <a href="YourDomainDotCom/actualDirectory/somevideo.wmv" target="_blank"/>Download Here</a>

Another method is to convert all of your videos to flv, inject metadata on them with flvtool2. Stream the video by way of pseudostreaming using xmoov. In fact, you can assign token on the xmoov streaming to filter who gets to watch your videos, but that's another lengthy process.

Big adult sites, the video url's are stored in the database, and then a view key is assigned with time limits. So, for every view key, a time limit is set on how long the url remains to be valid and accessible. For example,

| id | title | down_url | viewkey | expiration |
| 50 | | someVid | |this.wmv | |123564 | | 3600 |

You can then send a query for video from $_GET, to pull out other information.

You can also create an xml file using php , and then just extract the download url from xml file hidden from your viewers view.

Edited by veedeoo: n/a


thanx a ton!!!! for these replies.... really grateful. once again DaniWeb and members rocks!!!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.