|
Posted by Feuergold on 10/13/99 11:34
First I take the Script that juglesh has postet (sorry about my bad
english please), but in the last few weeks every day I delete lot of
posts in my guestbook. That for I look for a alternativ to the replace,
and I found this:
if (preg_match( '/bcc\:|Content\-Type\:|cc\:|to\:|MIME\-Version\:/i' ,
$email)) {
die ("BAD INPUT, NAUGHTY HACKER");}
else{
.....
}
Now the time to delete every day the posts is gone, and in my
mailformular I make the same, and I hope it is enough to stop the mails
the hacker have send through my formular.
Perhaps my little function is good enough to help other people with the
same problems.
[Back to original message]
|