Hi,
in my installation I get a lot of spam from China and Ukraine.
Strange thing is, that at least one required field seems not to be filled (email). It has required=yes and email=yes.
Anyway, as there seem to be only a few different IPs, I wanted to block them with this code:
But after safing the custom code action, there will be some backslashas added:
And it doesn't work.
So I have a few questions:
I think a php-setting causes the backslashes. Any idea which one?
2. Is there a simple possibility to add a hidden field in V5? A honeypot which blocks submitting if filled.
3. Is there a possibility to block form-submittion within the first 5 seconds after loading? I know this option from "EasyCalcCheck Plus". It seems to be really helpful, but ecc+ doesn't support Chronoforms.
Any other ideas? I would like to avoid using a captcha....π
Thanks in advance,
Viktor
in my installation I get a lot of spam from China and Ukraine.
Strange thing is, that at least one required field seems not to be filled (email). It has required=yes and email=yes.
Anyway, as there seem to be only a few different IPs, I wanted to block them with this code:
<?php
$banned_ips = array(
'111.111.111.111',
'999.999.999.999'
);
$ip_address = JRequest::getString( 'REMOTE_ADDR', '', 'server' );
if ( in_array($ip_address, $banned_ips) ) {
$mainframe->redirect('index.php');
}
?>
But after safing the custom code action, there will be some backslashas added:
<?php
$banned_ips = array(
\'111.111.111.111\',
\'999.999.999.999\'
);
$ip_address = JRequest::getString( \'REMOTE_ADDR\', \'\', \'server\' );
if ( in_array($ip_address, $banned_ips) ) {
$mainframe->redirect(\'index.php\');
}
?>
And it doesn't work.
So I have a few questions:
I think a php-setting causes the backslashes. Any idea which one?
2. Is there a simple possibility to add a hidden field in V5? A honeypot which blocks submitting if filled.
3. Is there a possibility to block form-submittion within the first 5 seconds after loading? I know this option from "EasyCalcCheck Plus". It seems to be really helpful, but ecc+ doesn't support Chronoforms.
Any other ideas? I would like to avoid using a captcha....π
Thanks in advance,
Viktor