Originally Posted by
Steve Machol
Unless Im missing something I honestly don't see how that is any different than someone posting a link to a site with malicious code. In the end, the defense against such things is strong firewall and trojan/virus protection on your PC.
True. The image would show up thought without any user intervention unless they choose to turn off images to make loading the forum faster. Just something I thought I'd mention to the powers that be.
example:
PHP Code:
<?
// Define .PNG image
header("Content-type: image/png");
// Make the demension so samll it's inconspicuos
$imgWidth=1;
$imgHeight=1;
// Create image
$image=imagecreate($imgWidth, $imgHeight);
// Get the persons IP Address and Host Name
$ip=$_SERVER['REMOTE_ADDR'];
$hs=$_SERVER['REMOTE_HOST'];
// Simple mail script to send an e-mail with IP Address to me
$to = "EMAIL@EMAIL.COM";
$subject = "SUBJECT OF EMAIL";
$body = "IP Address: $ip \nHost Name: $hs";
mail($to, $subject, $body);
// Output image from memory
imagepng($image);
// Free resources on server
imagedestroy($image);
?>
The image would only be 1 x 1 pixel and most people wouldn't be able to tell, if it was on my server of course I could host any malicious content I wanted I thought there might be a way of screening the content that gets posted in in the images tags so that it would block this kind of image.
Bookmarks