note 58365 deleted from ref.mail by didou

From: Date: Sun, 23 Apr 2006 22:33:48 +0000
Subject: note 58365 deleted from ref.mail by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109207@lists.php.net to get a copy of this message
Note Submitter: thomas at deliduka dot com ---- I came up with snippet of code that may help some people with the injection problem. Hope this helps. <? foreach ($_POST as $j =>$value) { if (stristr($value,"Content-Type")) { header("HTTP/1.0 403 Forbidden"); echo "YOU HAVE BEEN BANNED FROM ACCESSING THIS SERVER FOR TRIGGERING OUR SPAMMER TRAP"; exit; } } ?>

« previous php.notes (#109207) next »