$badmails = array('a@a.a', 'b@b.b', '...');foreach ($badmails as $badmail) { if (strtolower($com->email) == $badmail) { mosRedirect($backlink, 'Your are not welcome here!'); }}//μετά συνεχίζει...if (!$com->check()) {
$badwords = array('word1', 'word2', '...');foreach ($badwords as $badword) { if (preg_match("#\b".$badword."\b#i", $com->cmessage)) { mosRedirect($backlink, 'Your message is not acceptable!'); }}