Moin!
Wie schon gesagt - analog zu RFC 5841 etwa humorvolles :)
Ach so.
# Spamfilter
$arSpam[]=array('[url=', '[link=');
$arSpam[]=array('viagra');
$test=strtolower($_POST['Nachricht']);
$bolSpam=false;
foreach ($arSpam as $arSpammerkmal) {
$bolSpamItem=true;
foreach ($arSpammerkmal as $item) {
if (false === strpos($test,$item)) {
$bolSpamItem=false;
}
}
if ($bolSpamItem) {
$bolSpam=$bolSpamItem;
}
}
if ($bolSpam) {
header('Error: 403 Forbidden');
die ('<html><head><title>Forbidden</title></head><body><h1>403 Forbidden</h1><p>I don\'t need fucking viagra to fist fucking spammers ass!</p></body></html>');
}
unset ($test);
MFFG (Mit freundlich- friedfertigem Grinsen)
fastix