you're right, but i think i got it now
with HTTP_REFERER it works
script:
if ($HTTP_REFERER != "")
{
$sql = "SELECT * FROM pictures WHERE id='$a'";
$result = mysql_query($sql,$db);
$image = "pictures/$myPicPath" . mysql_result($result,0,"source");
$fp = fopen($image,"r");
echo fpassthru($fp);
fclose($image);
}
script call:
<img src="script.php?a=23">
thx a lot
Steffel