Hallo ich habe folgendes Script erstellt:
ALso meine Frage ist jetzt , ist das sicher , dass dann niemand mehr "script.php?lade" verlinkt , und damit Erfolg hat ,weill dann kann ich mir ja grossartige Konstruktionen auf Zeit etc. sparen.
PHP:
<?php
echo("<a href=script.php?lade>link</a>");
if(isset($_GET['lade']) ){
if($_SERVER['HTTP_REFERER'] == "http://localhost/script.php"){
//download
echo("Der Download startet");
}elseif($_SERVER['HTTP_REFERER'] != "http://localhost/script.php?lade"){
die("Der Webmaster von ".$_SERVER['HTTP_REFERER']." hat auf eine Datei gelinkt die nicht ihm gehört!");
}
}
?>