Revisiting one of my sites, I've been asked to remove the chronoforms anti spam validation because of accessibility requirements.
Since i have removed it, i am receiving spam. I remember that I used to manually place some code to filter and disable the submission of emails by inserting code similar to below - but it's not working, I must be doing something wrong (it's been a while now):
On Submit code - before sending email:
I just can't seem to crack this, as easy as it may seem!
I also tried to place the same code in Custom Server Side validation, but can't get that to work either. Is there something obvious i have missed...
Using: 4.0 RC3.4.1 31.May.2012 | Joomla 1.5
Since i have removed it, i am receiving spam. I remember that I used to manually place some code to filter and disable the submission of emails by inserting code similar to below - but it's not working, I must be doing something wrong (it's been a while now):
On Submit code - before sending email:
<?php
$ban_words = array("seo", "search engine", "abracadabra");
foreach ( $ban_words as $badword )
{
if ( strpos($form->data['f_comments'], $badword) !== false )
{
$mainframe->redirect('index.php');
}
}
?>
I just can't seem to crack this, as easy as it may seem!
I also tried to place the same code in Custom Server Side validation, but can't get that to work either. Is there something obvious i have missed...
Using: 4.0 RC3.4.1 31.May.2012 | Joomla 1.5