'
. '
',
'html_after' => '',
'section' => 'hidden_section',
'fields' => array(
'forms__registrations_test' => array(
'title' => __('Registration Forms', 'cleantalk-spam-protect'),
'description' => __(
'WordPress, BuddyPress, bbPress, S2Member, WooCommerce.',
'cleantalk-spam-protect'
),
),
'forms__comments_test' => array(
'title' => __('Comments form', 'cleantalk-spam-protect'),
'description' => __('WordPress, JetPack, WooCommerce.', 'cleantalk-spam-protect'),
),
'forms__contact_forms_test' => array(
'title' => __('Contact forms', 'cleantalk-spam-protect'),
'description' => __(
'Contact Form 7, Formidable forms, JetPack, Fast Secure Contact Form, WordPress Landing Pages, Gravity Forms.',
'cleantalk-spam-protect'
),
),
'forms__general_contact_forms_test' => array(
'title' => __('Custom contact forms', 'cleantalk-spam-protect'),
'description' => __(
'Anti-Spam test for any WordPress themes or contacts forms.',
'cleantalk-spam-protect'
),
),
'forms__search_test' => array(
'title' => __('Test default WordPress search form for spam', 'cleantalk-spam-protect'),
'description' =>
__('Spam protection for Search form.', 'cleantalk-spam-protect')
. (! $apbct->white_label || is_main_site() ?
sprintf(
__('Read more about %sspam protection for Search form%s on our blog. “noindex” tag will be placed in meta derictive on search page.', 'cleantalk-spam-protect'),
'
',
''
) : '')
),
'forms__check_external' => array(
'title' => __('Protect external forms', 'cleantalk-spam-protect'),
'description' => __(
'Turn this option on to protect forms on your WordPress that send data to third-part servers (like MailChimp).',
'cleantalk-spam-protect'
),
'childrens' => array('forms__check_external__capture_buffer'),
),
'forms__check_external__capture_buffer' => array(
'title' => __('Capture buffer', 'cleantalk-spam-protect'),
'description' => __(
'This setting gives you more sophisticated and strengthened protection for external forms. But it could break plugins which use a buffer like Ninja Forms.',
'cleantalk-spam-protect'
),
'class' => 'apbct_settings-field_wrapper--sub',
'parent' => 'forms__check_external',
),
'forms__check_internal' => array(
'title' => __('Protect internal forms', 'cleantalk-spam-protect'),
'description' => __(
'This option will enable protection for custom (hand-made) AJAX forms with PHP scripts handlers on your WordPress.',
'cleantalk-spam-protect'
),
),
),
),
// Comments and Messages
'wc' => array(
'title' => __('WooCommerce', 'cleantalk-spam-protect'),
'section' => 'hidden_section',
'fields' => array(
'forms__wc_checkout_test' => array(
'title' => __('WooCommerce checkout form', 'cleantalk-spam-protect'),
'description' => __('Anti-Spam test for WooCommerce checkout form.', 'cleantalk-spam-protect'),
'childrens' => array('forms__wc_register_from_order'),
'reverse_trigger' => true,
'options' => array(
array('val' => 1, 'label' => __('On'), 'childrens_enable' => 0,),
array('val' => 0, 'label' => __('Off'), 'childrens_enable' => 1,),
),
),
'forms__wc_register_from_order' => array(
'title' => __('Spam test for registration during checkout', 'cleantalk-spam-protect'),
'description' => __(
'Enable Anti-Spam test for registration process which during woocommerce\'s checkout.',
'cleantalk-spam-protect'
),
'parent' => 'forms__wc_checkout_test',
'class' => 'apbct_settings-field_wrapper--sub',
'reverse_trigger' => true,
),
'forms__wc_add_to_cart' => array(
'title' => __(
'Check anonymous users when they add new items to the cart',
'cleantalk-spam-protect'
),
'description' => __(
'All anonymous users will be checked for spam if they add a new item to their shopping cart.',
'cleantalk-spam-protect'
),
'reverse_trigger' => false,
'class' => 'apbct_settings-field_wrapper--sub',
'options' => array(
array('val' => 1, 'label' => __('On')),
array('val' => 0, 'label' => __('Off')),
),
)
),
),
// Comments and Messages
'comments_and_messages' => array(
'title' => __('Comments and Messages', 'cleantalk-spam-protect'),
'section' => 'hidden_section',
'fields' => array(
'comments__disable_comments__all' => array(
'title' => __('Disable all comments', 'cleantalk-spam-protect'),
'description' => __('Disabling comments for all types of content.', 'cleantalk-spam-protect'),
'childrens' => array(
'comments__disable_comments__posts',
'comments__disable_comments__pages',
'comments__disable_comments__media',
),
'options' => array(
array('val' => 1, 'label' => __('On'), 'childrens_enable' => 0,),
array('val' => 0, 'label' => __('Off'), 'childrens_enable' => 1,),
),
),
'comments__disable_comments__posts' => array(
'title' => __('Disable comments for all posts', 'cleantalk-spam-protect'),
'class' => 'apbct_settings-field_wrapper--sub',
'reverse_trigger' => true,
),
'comments__disable_comments__pages' => array(
'title' => __('Disable comments for all pages', 'cleantalk-spam-protect'),
'class' => 'apbct_settings-field_wrapper--sub',
'reverse_trigger' => true,
),
'comments__disable_comments__media' => array(
'title' => __('Disable comments for all media', 'cleantalk-spam-protect'),
'class' => 'apbct_settings-field_wrapper--sub',
'reverse_trigger' => true,
),
'comments__bp_private_messages' => array(
'title' => __('BuddyPress Private Messages', 'cleantalk-spam-protect'),
'description' => __('Check buddyPress private messages.', 'cleantalk-spam-protect'),
),
'comments__remove_old_spam' => array(
'title' => __('Automatically delete spam comments', 'cleantalk-spam-protect'),
'description' => sprintf(
__('Delete spam comments older than %d days.', 'cleantalk-spam-protect'),
$apbct->data['spam_store_days']
),
),
'comments__remove_comments_links' => array(
'title' => __('Remove links from approved comments', 'cleantalk-spam-protect'),
'description' => __(
'Remove links from approved comments. Replace it with "[Link deleted]"',
'cleantalk-spam-protect'
),
),
'comments__show_check_links' => array(
'title' => __('Show links to check Emails, IPs for spam', 'cleantalk-spam-protect'),
'description' => __(
'Shows little icon near IP addresses and Emails allowing you to check it via CleanTalk\'s database.',
'cleantalk-spam-protect'
),
'display' => ! $apbct->white_label,
),
'comments__manage_comments_on_public_page' => array(
'title' => __('Manage comments on public pages', 'cleantalk-spam-protect'),
'description' => __(
'Allows administrators to manage comments on public post\'s pages with small interactive menu.',
'cleantalk-spam-protect'
),
'display' => ! $apbct->white_label,
),
),
),
// Data Processing
'data_processing' => array(
'title' => __('Data Processing', 'cleantalk-spam-protect'),
'section' => 'hidden_section',
'fields' => array(
'data__protect_logged_in' => array(
'title' => __("Protect logged in Users", 'cleantalk-spam-protect'),
'description' => __(
'Turn this option on to check for spam any submissions (comments, contact forms and etc.) from registered Users.',
'cleantalk-spam-protect'
),
),
'comments__check_comments_number' => array(
'title' => __("Don't check trusted user's comments", 'cleantalk-spam-protect'),
'description' => sprintf(
__("Don't check comments for users with above %d comments.", 'cleantalk-spam-protect'),
defined('CLEANTALK_CHECK_COMMENTS_NUMBER') ? CLEANTALK_CHECK_COMMENTS_NUMBER : 3
),
),
'data__use_ajax' => array(
'title' => __('Use AJAX for JavaScript check', 'cleantalk-spam-protect'),
'description' => __(
'Options helps protect WordPress against spam with any caching plugins. Turn this option on to avoid issues with caching plugins. Turn off this option and SpamFireWall to be compatible with Accelerated mobile pages (AMP).',
'cleantalk-spam-protect'
),
'childrens' => array('data__ajax_type_checking_js')
),
'data__ajax_type_checking_js' => array(
'display' => $apbct->settings['data__use_ajax'] == 1,
'callback' => 'apbct_settings__ajax_handler_type_notification'
),
'data__use_static_js_key' => array(
'title' => __('Use static keys for JavaScript check', 'cleantalk-spam-protect'),
'description' => __(
'Could help if you have cache for AJAX requests and you are dealing with false positives. Slightly decreases protection quality. Auto - Static key will be used if caching plugin is spotted.',
'cleantalk-spam-protect'
),
'options' => array(
array('val' => 1, 'label' => __('On'),),
array('val' => 0, 'label' => __('Off'),),
array('val' => -1, 'label' => __('Auto'),),
),
),
'data__general_postdata_test' => array(
'title' => __('Check all post data', 'cleantalk-spam-protect'),
'description' =>
__('Check all POST submissions from website visitors. Enable this option if you have spam misses on website.', 'cleantalk-spam-protect')
. (! $apbct->white_label ?
__(' Or you don`t have records about missed spam here:', 'cleantalk-spam-protect')
. ' '
. '
'
. __('CleanTalk Dashboard', 'cleantalk-spam-protect')
. '.' : '')
. '
'
. __('СAUTION! Option can catch POST requests in WordPress backend', 'cleantalk-spam-protect'),
),
'data__set_cookies' => array(
'title' => __("Set cookies", 'cleantalk-spam-protect'),
'description' =>
__(
'Turn this option off or use alternative mechanism for cookies to forbid the plugin generate any cookies on website\'s front-end.',
'cleantalk-spam-protect'
)
. '
'
. __(
'This option is helpful if you are using Varnish. Most contact forms will have poor protection if the option is turned off!',
'cleantalk-spam-protect'
)
. '
'
. __(
'Alternative mechanism will store data in database and will not set cookies in browser, so the cache solutions will work just fine.',
'cleantalk-spam-protect'
)
. '
'
. __(
'Warning: We strongly recommend you keep the setting on, otherwise it could cause false positives spam detection.',
'cleantalk-spam-protect'
)
. '',
'long_description' => true,
'input_type' => 'radio',
'options' => array(
array('val' => 1, 'label' => __('On', 'cleantalk-spam-protect'), 'childrens_enable' => 0,),
array(
'val' => 2,
'label' => __(
'Store data in the website database (alternative mechanism)',
'cleantalk-spam-protect'
),
'childrens_enable' => 1,
),
array('val' => 3, 'label' => __('Auto', 'cleantalk-spam-protect'), 'childrens_enable' => 0,),
array('val' => 0, 'label' => __('Off', 'cleantalk-spam-protect'), 'childrens_enable' => 0,),
),
'childrens' => array('data__ajax_type')
),
'data__ajax_type' => array(
'display' => $apbct->data['cookies_type'] === 'alternative',
'callback' => 'apbct_settings__check_alt_cookies_types'
),
'data__ssl_on' => array(
'title' => __("Use SSL", 'cleantalk-spam-protect'),
'description' => __(
'Turn this option on to use encrypted (SSL) connection with servers.',
'cleantalk-spam-protect'
),
),
'wp__use_builtin_http_api' => array(
'title' => __("Use WordPress HTTP API", 'cleantalk-spam-protect'),
'description' => __(
'Alternative way to connect the Cloud. Use this if you have connection problems.',
'cleantalk-spam-protect'
),
),
'sfw__use_delete_to_clear_table' => array(
'title' => __(
"Use DELETE SQL-command instead TRUNCATE to clear tables",
'cleantalk-spam-protect'
),
'description' => __(
'Could help if you have blocked SpamFireWall tables in your database.',
'cleantalk-spam-protect'
),
'parent' => 'sfw__enabled',
),
'data__pixel' => array(
'title' => __('Add a CleanTalk Pixel to improve IP-detection', 'cleantalk-spam-protect'),
'description' =>
__(
'Upload small graphic file from CleanTalk\'s server to improve IP-detection.',
'cleantalk-spam-protect'
)
. '
'
. __(
'"Auto" use JavaScript option if cache solutions are found.',
'cleantalk-spam-protect'
),
'long_description' => true,
'options' => array(
array('val' => 1, 'label' => __('Via direct output', 'cleantalk-spam-protect'),),
array('val' => 2, 'label' => __('Via JavaScript', 'cleantalk-spam-protect'),),
array('val' => 3, 'label' => __('Auto', 'cleantalk-spam-protect'),),
array('val' => 0, 'label' => __('Off', 'cleantalk-spam-protect'),),
),
),
'data__email_check_before_post' => array(
'title' => __('Check email before POST request', 'cleantalk-spam-protect'),
'description' => __('Check email address before sending form data', 'cleantalk-spam-protect'),
),
'data__honeypot_field' => array(
'title' => __(
'Add a honeypot field',
'cleantalk-spam-protect'
),
'description' => __(
'This option adds a honeypot field to the forms.',
'cleantalk-spam-protect'
),
'options' => array(
array('val' => 1, 'label' => __('On')),
array('val' => 0, 'label' => __('Off')),
),
'long_description' => true,
),
'data__email_decoder' => array(
'title' => __('Encode contact data', 'cleantalk-spam-protect'),
'description' => __('Turn on this option to prevent crawlers grab contact data (emails) from website content.', 'cleantalk-spam-protect'),
'long_description' => true,
),
),
),
// Exclusions
'exclusions' => array(
'title' => __('Exclusions', 'cleantalk-spam-protect'),
'section' => 'hidden_section',
'fields' => array(
'exclusions__log_excluded_requests' => array(
'title' => __('Log excluded requests', 'cleantalk-spam-protect'),
'description' => __('Enable the option to log some types of the excluded requests, like comments from approved authors or POST requests without an Email address', 'cleantalk-spam-protect'),
),
'exclusions__urls' => array(
'type' => 'textarea',
'title' => __('URL exclusions', 'cleantalk-spam-protect'),
'description' => __(
'You could type here a part of the URL you want to exclude. Use comma or new lines as separator. Exclusion value will be sliced to 128 chars, exclusions number is restricted by 20 values.',
'cleantalk-spam-protect'
),
),
'exclusions__urls__use_regexp' => array(
'type' => 'checkbox',
'title' => __('Use Regular Expression in URL Exclusions', 'cleantalk-spam-protect'),
),
'exclusions__fields' => array(
'type' => 'textarea',
'title' => __('Field name exclusions', 'cleantalk-spam-protect'),
'description' => __(
'You could type here fields names you want to exclude. Use comma as separator. Exclusion value will be sliced to 128 chars, exclusions number is restricted by 20 values.',
'cleantalk-spam-protect'
),
),
'exclusions__fields__use_regexp' => array(
'type' => 'checkbox',
'title' => __('Use Regular Expression in Field Exclusions', 'cleantalk-spam-protect'),
),
'exclusions__roles' => array(
'type' => 'select',
'multiple' => true,
'options_callback' => 'apbct_get_all_roles',
'description' => __(
'Roles which bypass spam test. Hold CTRL to select multiple roles.',
'cleantalk-spam-protect'
),
),
),
),
// Admin bar
'admin_bar' => array(
'title' => __('Admin bar', 'cleantalk-spam-protect'),
'default_params' => array(),
'description' => '',
'html_before' => '',
'html_after' => '',
'section' => 'hidden_section',
'fields' => array(
'admin_bar__show' => array(
'title' => __('Show statistics in admin bar', 'cleantalk-spam-protect'),
'description' => __(
'Show/hide icon in top level menu in WordPress backend. The number of submissions is being counted for past 24 hours.',
'cleantalk-spam-protect'
),
'childrens' => array(
'admin_bar__all_time_counter',
'admin_bar__daily_counter',
'admin_bar__sfw_counter'
),
),
'admin_bar__all_time_counter' => array(
'title' => __('Show All-time counter', 'cleantalk-spam-protect'),
'description' => __(
'Display all-time requests counter in the admin bar. Counter displays number of requests since plugin installation.',
'cleantalk-spam-protect'
),
'parent' => 'admin_bar__show',
'class' => 'apbct_settings-field_wrapper--sub',
),
'admin_bar__daily_counter' => array(
'title' => __('Show 24 hours counter', 'cleantalk-spam-protect'),
'description' => __(
'Display daily requests counter in the admin bar. Counter displays number of requests of the past 24 hours.',
'cleantalk-spam-protect'
),
'parent' => 'admin_bar__show',
'class' => 'apbct_settings-field_wrapper--sub',
),
'admin_bar__sfw_counter' => array(
'title' => __('SpamFireWall counter', 'cleantalk-spam-protect'),
'description' => __(
'Display SpamFireWall requests in the admin bar. Counter displays number of requests since plugin installation.',
'cleantalk-spam-protect'
),
'parent' => 'admin_bar__show',
'class' => 'apbct_settings-field_wrapper--sub',
),
),
),
// SFW features
'sfw_features' => array(
'title' => __('SpamFireWall features', 'cleantalk-spam-protect'),
'default_params' => array(),
'description' => '',
'html_before' => '',
'html_after' => '',
'section' => 'hidden_section',
'fields' => array(
'sfw__random_get' => array(
'type' => 'radio',
'options' => array(
array('val' => 1, 'label' => __('On'),),
array('val' => 0, 'label' => __('Off'),),
array('val' => -1, 'label' => __('Auto'),),
),
'title' => __('Uniq GET option', 'cleantalk-spam-protect'),
'class' => 'apbct_settings-field_wrapper',
'parent' => 'sfw__enabled',
'description' => __(
'If a visitor gets the SpamFireWall page, the plugin will put a unique GET variable in the URL to avoid issues with caching plugins. Example: https://SITE.COM/?sfw=pass1629985735',
'cleantalk-spam-protect'
),
),
'sfw__anti_crawler' => array(
'type' => 'checkbox',
'title' => 'Anti-Crawler' . $additional_ac_title, // Do not to localize this phrase
'class' => 'apbct_settings-field_wrapper',
'parent' => 'sfw__enabled',
'description' =>
__(
'Plugin shows SpamFireWall stop page for any bot, except allowed bots (Google, Yahoo and etc).',
'cleantalk-spam-protect'
)
. '
'
. __(
'Anti-Crawler includes blocking bots by the User-Agent. Use Personal lists in the Dashboard to filter specific User-Agents.',
'cleantalk-spam-protect'
),
'long_description' => true,
),
'sfw__anti_flood' => array(
'type' => 'checkbox',
'title' => 'Anti-Flood', // Do not to localize this phrase
'class' => 'apbct_settings-field_wrapper',
'parent' => 'sfw__enabled',
'childrens' => array('sfw__anti_flood__view_limit',),
'description' => __(
'Shows the SpamFireWall page for bots trying to crawl your site. Look at the page limit setting below.',
'cleantalk-spam-protect'
),
'long_description' => true,
),
'sfw__anti_flood__view_limit' => array(
'type' => 'text',
'title' => 'Anti-Flood ' . __('Page Views Limit', 'cleantalk-spam-protect'), // Do not to localize this phrase
'class' => 'apbct_settings-field_wrapper--sub',
'parent' => 'sfw__anti_flood',
'description' => __(
'Count of page view per 1 minute before plugin shows SpamFireWall page. SpamFireWall page active for 30 second after that valid visitor (with JavaScript) passes the page to the demanded page of the site.',
'cleantalk-spam-protect'
),
),
),
),
// Misc
'misc' => array(
'title' => __('Miscellaneous', 'cleantalk-spam-protect'),
'section' => 'hidden_section',
'html_after' => '