Guest User

Untitled

a guest
Oct 21st, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Move the FLVs into a non-web accessible directory (or add a .htaccess file blocking it from external access)
  2. Next wrap the FLV output in PHP doing something like:-
  3.  
  4. <?php
  5. $filename="/path/to/your/file.flv";
  6. $yourdomain = "yourdomain.com";
  7. if (stristr($yourdomain, $_SERVER["HTTP_REFERER"]) || $_SERVER["HTTP_REFERER"]=="")
  8. {
  9. header("Content-type: video/flv");
  10. echo file_get_contents($filename);
  11. }
  12. else
  13. die ("You are not allowed to access this file");
  14. ?>
  15.  
  16. Then point the FLV player SWF at the PHP file instead of the FLV file.
  17.  
  18. If you want to do pseudo streaming you'll need to use something like xmoov.com (free) but that requires using yamdi (also free) to inject metadata into your FLV files.
Add Comment
Please, Sign In to add comment