note 56786 added to ref.mail
| From: | downforce at no dot com | Date: | Thu, 15 Sep 2005 10:37:07 +0000 |
| Subject: | note 56786 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-95208@lists.php.net to get a copy of this message | ||
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/
----
Manual Page -- http://www.php.net/manual/en/ref.mail.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56786
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56786&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56786&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56786&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56786&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56786&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56786&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56786&report=yes
Search -- http://master.php.net/manage/user-notes.php