<?php
/**
 * Default Options: Protection Module
 *
 * Contains default settings for CAPTCHA, URL guard, rate limiting, and content protection.
 *
 * @package UltimateSecurity
 * @since 2.0.0
 */

return [
    're_captcha' => [
        'enable' => '1',
        'type' => 'v2',
        'site_key' => '',
        'secret_key' => '',
        'message_verification_failed' => 'Google reCAPTCHA verification failed. please try again.',
        'message_blank' => 'Google reCAPTCHA token is missing',
        'message_server_fail' => 'Could not get response from reCAPTCHA server',
        'field_title' => '',
        'no_conflict_mode' => '0',
        'enable_woocommerce' => '0',
        'theme' => 'light',
        'size' => 'normal',
    ],

    'cloudflare_turnstile' => [
        'site_key' => '',
        'secret_key' => '',
        'theme' => 'light',
        'language' => 'auto',
        'disable_submit_button' => '0',
        'widget_size' => 'normal',
        'appearance_mode' => 'always',
        'defer_scripts' => '0',
        'custom_error_message' => '',
        'extra_failure_message' => '0',
        'failure_message' => '',
        'logged_in_users' => '0',
        'ip_addresses' => '',
        'user_agents' => '',
        'wordpress_login' => '0',
        'wordpress_register' => '0',
        'wordpress_reset_password' => '0',
        'wordpress_comment' => '0',
        'enable_turnstile_debugging' => '0',
    ],

    'content_protection' => [
        'enable' => '0',
        'protection_scope' => 'whole_site',
        'page_ids' => [],
        'protect_woocommerce' => '0',
        'product_categories' => [],
        'custom_urls' => [],
        'excluded_roles' => [],
        'disable_right_click' => '0',
        'disable_text_selection' => '0',
        'disable_copy' => '0',
        'disable_cut' => '0',
        'disable_image_right_click' => '0',
        'disable_image_dragging' => '0',
        'image_overlay' => '0',
        'hotlink_protection' => '0',
        'disable_dev_tools' => '0',
        'disable_view_source' => '0',
        'disable_save' => '0',
        'disable_print' => '0',
        'notification_type' => 'alert',
        'message_right_click' => '',
        'message_copy' => '',
        'message_keyboard' => '',
        'disable_mobile_longpress' => '0',
        'disable_touch_callout' => '0',
    ],

    'email_blacklist' => [
        'enable' => '0',
    ],

    'address_blacklist' => [
        'enable' => '0',
        'percentage' => 60,
    ],

    'url_guard' => [
        'overview' => [
            'enable' => '1',
            'request_methods' => [],
            'ip_whitelist' => '',
            'log_retention_days' => '30',
        ],
        'requests_log' => [],
        'query_strings' => [],
        'user_agents' => [],
    ],

    'traffic_log' => [
        'enable' => '0',
        'log_data' => [],
    ],

    'rate_limiter' => [
        'rate_limiting_enabled' => '0',
        'rate_limit_algorithm' => 'sliding_window',
        'rate_limit_authenticated' => 120,
        'rate_limit_anonymous' => 60,
        'rate_limit_window' => 60,
        'rate_limit_refill_rate' => 2,
        'rate_limit_leak_rate' => 2,
        'rate_limit_auto_block' => '0',
        'rate_limit_auto_block_threshold' => 10,
        'rate_limit_auto_block_window' => 300,
        'rate_limit_block_duration' => 3600,
    ],
];
