note 56786 deleted from ref.mail by mazzanet
| From: | mazzanet@php.net | Date: | Thu, 15 Sep 2005 10:46:20 +0000 |
| Subject: | note 56786 deleted from ref.mail by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95210@lists.php.net to get a copy of this message | ||
Note Submitter: downforce at no dot com
----
Inspired by oryan's post i've you can you use this code to prevent mime attacks on your
side by this code:
< ?
foreach ( $_POST as $key => $value ) {
$postVars .= $value;
}
if(eregi(MIME-Version:,$postVars)) {
die(Your message containts the words
MIME-Version: this is considerd as spam!);
}
?>
perma link on my blog: http://www.downforce.info/2005/09/15/php-mime-form-spam/