forked from dennylin93/rcguard
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.inc.php.dist
50 lines (36 loc) · 1.53 KB
/
config.inc.php.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
* rcguard configuration file
*/
// Number of failed logins before reCAPTCHA is shown
$rcmail_config['failed_attempts'] = 5;
// Release IP after how many minutes (after last failed attempt)
$rcmail_config['expire_time'] = 30;
// Reset failure count after successfull login (see bratkartoffel/rcguard@670395e)
$rcmail_config['rcguard_reset_after_success'] = true;
// reCAPTCHA API
$rcmail_config['recaptcha_api'] = 'http://www.google.com/recaptcha/api.js';
$rcmail_config['recaptcha_api_secure'] = 'https://www.google.com/recaptcha/api.js';
// Use HTTPS for reCAPTCHA
$rcmail_config['recaptcha_https'] = false;
// Keys can be obtained from http://www.google.com/recaptcha/
// Public key for reCAPTCHA
$rcmail_config['recaptcha_publickey'] = '';
// Private key for reCAPTCHA
$rcmail_config['recaptcha_privatekey'] = '';
// Send client IP to Google for reCAPTCHA verification
$rcmail_config['recaptcha_send_client_ip'] = true;
// Log events
$rcmail_config['recaptcha_log'] = false;
// Event is not logged when set to NULL
// Parameter expansion:
// %r - Remote IP
// %u - Username
$rcmail_config['recaptcha_log_success'] = 'Verification succeeded for %u. [%r]';
$rcmail_config['recaptcha_log_failure'] = 'Error: Verification failed for %u. [%r]';
$rcmail_config['recaptcha_log_unknown'] = 'Error: Unknown log type.';
// Block IPv6 clients based on prefix length
// Use an integer between 16 and 128, 0 to disable
$rcmail_config['rcguard_ipv6_prefix'] = 0;
// Do not show recaptcha for this IPs
$rcmail_config['rcguard_ignore_ips'] = array();