protect php result
Posted
by siko
on Stack Overflow
See other posts from Stack Overflow
or by siko
Published on 2010-05-22T12:46:15Z
Indexed on
2010/05/22
12:50 UTC
Read the original article
Hit count: 356
hii i had simple php file to protect wmv files from downloading and stolen the file is like this
<?php
// get-file.php
$id = (isset($_GET["id"])) ? strval($_GET["id"]) : "1";
// lookup
$url[1] = 'http://mlfat.ledawy.net/Files/eng/moslslat/mosque/1.wmv';
$url[2] = 'URL';
$url[3] = 'URL';
header('Content-Type: text/plain');
echo("$url[$id]");
?>
and i embedd the movies like this http:// mlfat.ledawy.net/Files/eng/moslslat/mosque/mosque.php?id=1 but if you call this link you can find the source url can i have some protection ?? tried a lot of adding a php session variable so that the script can not be accessed directly. thank you
© Stack Overflow or respective owner