View Single Post
Old 05-07-2004, 01:05 AM  
bawdy
Confirmed User
 
Join Date: Feb 2002
Posts: 1,424
maybe some php like this will help.... you will need to w r i t e the bits to check that referer is your site etc.... plus if mpegs arent in your web root you will need to extract that... plus set up .htaccess to parse .mpg as .php

havent tried this for mpg but use it for other files to prevent linking/downloading unless certain conditions are meet

header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");

header("Content-Type: video/mpeg");
header( "Content-Dispo(remove)sition attachment; filename=\"$filename\"");

header( "Content-Description: File Transfert");
readfile("downloads/" . $filename);

Last edited by bawdy; 05-07-2004 at 01:07 AM..
bawdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote