$aio_wp_security->debug_logger->log_debug("Nonce check failed on save comment spam settings!",4);
die("Nonce check failed on save comment spam settings!");
}
//Save settings
$random_20_digit_string=AIOWPSecurity_Utility::generate_alpha_numeric_random_string(20);//Generate random 20 char string for use during captcha encode/decode
<h3class="hndle"><labelfor="title"><?php_e('Add Captcha To Comments Form','all-in-one-wp-security-and-firewall');?></label></h3>
<divclass="inside">
<divclass="aio_blue_box">
<?php
echo'<p>'.__('This feature will add a simple math captcha field in the WordPress comments form.','all-in-one-wp-security-and-firewall').
'<br />'.__('Adding a captcha field in the comment form is a simple way of greatly reducing SPAM comments from bots without using .htaccess rules.','all-in-one-wp-security-and-firewall').'</p>';
<spanclass="description"><?php_e('Check this if you want to insert a captcha field on the comment forms','all-in-one-wp-security-and-firewall');?></span>
echo'<p>'.__('A large portion of WordPress blog comment SPAM is mainly produced by automated bots and not necessarily by humans. ','all-in-one-wp-security-and-firewall').
'<br />'.__('This feature will greatly minimize the useless and unecessary traffic and load on your server resulting from SPAM comments by blocking all comment requests which do not originate from your domain.','all-in-one-wp-security-and-firewall').
'<br />'.__('In other words, if the comment was not submitted by a human who physically submitted the comment on your site, the request will be blocked.','all-in-one-wp-security-and-firewall').'</p>';
<spanclass="description"><?php_e('Check this if you want to apply a firewall rule which will block comments originating from spambots.','all-in-one-wp-security-and-firewall');?></span>
echo'<p class="description">'.__('This feature will implement a firewall rule to block all comment attempts which do not originate from your domain.','all-in-one-wp-security-and-firewall').'</p>';
echo'<p class="description">'.__('A legitimate comment is one which is submitted by a human who physically fills out the comment form and clicks the submit button. For such events, the HTTP_REFERRER is always set to your own domain.','all-in-one-wp-security-and-firewall').'</p>';
echo'<p class="description">'.__('A comment submitted by a spambot is done by directly calling the comments.php file, which usually means that the HTTP_REFERRER value is not your domain and often times empty.','all-in-one-wp-security-and-firewall').'</p>';
echo'<p class="description">'.__('This feature will check and block comment requests which are not referred by your domain thus greatly reducing your overall blog SPAM and PHP requests done by the server to process these comments.','all-in-one-wp-security-and-firewall').'</p>';
$error.='<br />'.__('You entered a non numeric value for the minimum number of spam comments field. It has been set to the default value.','all-in-one-wp-security-and-firewall');
$spam_ip_min_comments='3';//Set it to the default value for this field
}elseif(empty($spam_ip_min_comments)){
$error.='<br />'.__('You must enter an integer greater than zero for minimum number of spam comments field. It has been set to the default value.','all-in-one-wp-security-and-firewall');
$spam_ip_min_comments='3';//Set it to the default value for this field
$error.='<br />'.__('You entered a non numeric value for the minimum SPAM comments per IP field. It has been set to the default value.','all-in-one-wp-security-and-firewall');
$min_comments_per_ip='5';//Set it to the default value for this field
$info_msg_string=sprintf(__('Displaying results for IP addresses which have posted a minimum of %s SPAM comments','all-in-one-wp-security-and-firewall'),$min_comments_per_ip);
$this->show_msg_updated($info_msg_string);
}
if(isset($_REQUEST['action']))//Do list table form row action tasks
{
if($_REQUEST['action']=='block_spammer_ip')
{//The "block" link was clicked for a row in the list table
$info_msg=sprintf(__('This feature has detected that %s is not active. It is highly recommended that you activate the Akismet plugin to make the most of this feature.','all-in-one-wp-security-and-firewall'),$akismet_link);
echo'<p>'.__('This feature allows you to automatically and permanently block IP addresses which have exceeded a certain number of comments labelled as SPAM.','all-in-one-wp-security-and-firewall').'</p>'.
'<p>'.__('Comments are usually labelled as SPAM either by the Akismet plugin or manually by the WP administrator when they mark a comment as "spam" from the WordPress Comments menu.','all-in-one-wp-security-and-firewall').'</p>'.
'<p><strong>'.__('NOTE: This feature does NOT use the .htaccess file to permanently block the IP addresses so it should be compatible with all web servers running WordPress.','all-in-one-wp-security-and-firewall').'</strong></p>';
<spanclass="description"><?php_e('Check this box if you want this plugin to automatically block IP addresses which submit SPAM comments.','all-in-one-wp-security-and-firewall');?></span>
</td>
</tr>
<trvalign="top">
<thscope="row"><?php_e('Minimum number of SPAM comments','all-in-one-wp-security-and-firewall')?>:</th>
<spanclass="description"><?php_e('Specify the minimum number of SPAM comments for an IP address before it is permanently blocked.','all-in-one-wp-security-and-firewall');?></span>
echo'<p class="description">'.__('Example 1: Setting this value to "1" will block ALL IP addresses which were used to submit at least one SPAM comment.','all-in-one-wp-security-and-firewall').'</p>';
echo'<p class="description">'.__('Example 2: Setting this value to "5" will block only those IP addresses which were used to submit 5 SPAM comments or more on your site.','all-in-one-wp-security-and-firewall').'</p>';
<!--<td><inputtype="submit"name="aiowps_auto_spam_block_run"value="--><?php //_e('Run SPAM IP Blocking Now', 'all-in-one-wp-security-and-firewall')?><!--"class="button-secondary"/>-->
<!--<spanclass="description">--><?php//_e('This feature normally runs automatically whenever a comment is submitted but you can run it manually by clicking this button. (useful for older comments)', 'all-in-one-wp-security-and-firewall');?><!--</span>-->
<h3class="hndle"><labelfor="title"><?php_e('List SPAMMER IP Addresses','all-in-one-wp-security-and-firewall');?></label></h3>
<divclass="inside">
<divclass="aio_blue_box">
<?php
echo'<p>'.__('This section displays a list of the IP addresses of the people or bots who have left SPAM comments on your site.','all-in-one-wp-security-and-firewall').'
<spanclass="description"><?php_e('This field allows you to list only those IP addresses which have been used to post X or more SPAM comments.','all-in-one-wp-security-and-firewall');?></span>
echo'<p class="description">'.__('Example 1: Setting this value to "0" or "1" will list ALL IP addresses which were used to submit SPAM comments.','all-in-one-wp-security-and-firewall').'</p>';
echo'<p class="description">'.__('Example 2: Setting this value to "5" will list only those IP addresses which were used to submit 5 SPAM comments or more on your site.','all-in-one-wp-security-and-firewall').'</p>';
?>
</div>
</td>
</tr>
</table>
<inputtype="submit"name="aiowps_ip_spam_comment_search"value="<?php _e('Find IP Addresses', 'all-in-one-wp-security-and-firewall')?>"class="button-primary"/>
</form>
</div></div>
<divclass="postbox">
<h3class="hndle"><labelfor="title"><?php_e('SPAMMER IP Address Results','all-in-one-wp-security-and-firewall');?></label></h3>
<h3class="hndle"><labelfor="title"><?php_e('Add Captcha To BuddyPress Registration Form','all-in-one-wp-security-and-firewall');?></label></h3>
<divclass="inside">
<divclass="aio_blue_box">
<?php
echo'<p>'.__('This feature will add a simple math captcha field in the BuddyPress registration form.','all-in-one-wp-security-and-firewall').
'<br />'.__('Adding a captcha field in the registration form is a simple way of greatly reducing SPAM signups from bots without using .htaccess rules.','all-in-one-wp-security-and-firewall').'</p>';
<spanclass="description"><?php_e('Check this if you want to insert a captcha field on the BuddyPress registration forms','all-in-one-wp-security-and-firewall');?></span>
$this->show_msg_error(__('BuddyPress is not active! In order to use this feature you will need to have BuddyPress installed and activated.','all-in-one-wp-security-and-firewall'));