Advertisement
sarifatih

Hotlink

Sep 4th, 2013
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. $file_url       =       $_GET['url'];
  2. $file_type      =       $_GET['type'];
  3. $file_name      =       $_GET['name'];
  4.  
  5. header('Content-Type: '.$file_type);
  6. header('Content-disposition: attachment; filename='.$file_name);
  7. header("Content-Transfer-Encoding: Binary");
  8. readfile($file_url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement