note 58365 modified in ref.mail by dbs
| From: | dbs@php.net | Date: | Sun, 08 Jan 2006 13:12:52 +0000 |
| Subject: | note 58365 modified in ref.mail by dbs | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-101399@lists.php.net to get a copy of this message | ||
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;
}
}
?>
--was--
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;
}
}
?>
http://php.net/manual/en/ref.mail.php