View Single Post
Old 02-07-2007, 12:37 AM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by Myst View Post
theres an easier way to do it..
make a .htaccess file and redirect all requests to video files to a php script (sending of course the name of the file requested)

in the php file check to see if the person is 'allowed' to download the file (cookie, referer, ip, whatever) and use readfile() to let the user download the file if its ok; otherwise u can send em to another file, or a website (header(Location:.... ))
thats basically what this does , ceptin your method wouldnt really allow affiliates to hotlink your videos..

I invented this method for sponsors so anyone displaying a banner for the appropriate site can display or even embed the videos..
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote