-
Notifications
You must be signed in to change notification settings - Fork 11
/
config.inc.php.dist
69 lines (50 loc) · 2.13 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
/**
* rcguard configuration file.
*/
// Number of failed logins before reCAPTCHA is shown
$config['failed_attempts'] = 3;
// Release IP after how many minutes (after last failed attempt)
$config['expire_time'] = 30;
// Reset failure count after successfull login (see bratkartoffel/rcguard@670395e)
$config['rcguard_reset_after_success'] = true;
// reCAPTCHA API version and url
$config['recaptcha_api_version'] = 'v2'; // v3 | v2 | v2invisible
$config['recaptcha_api_url'] = 'https://www.google.com/recaptcha/api.js';
// !!! DEPRECATED - not used anymore !!!
//$config['recaptcha_api'] = 'http://www.google.com/recaptcha/api.js';
//$config['recaptcha_api_secure'] = 'https://www.google.com/recaptcha/api.js';
//$config['recaptcha_https'] = true;
// Keys can be obtained from http://www.google.com/recaptcha/
// reCAPTCHA site key
$config['recaptcha_publickey'] = '';
// reCAPTCHA secret key
$config['recaptcha_privatekey'] = '';
// Send client IP to Google for reCAPTCHA verification
$config['recaptcha_send_client_ip'] = false;
// If defined, use this proxy to request ReCaptcha
// $config['recaptcha_proxy'] = 'proxy.example.com:5100';
$config['recaptcha_proxy'] = false;
// Proxy authentication credentials
// $config['recaptcha_proxy:auth'] = 'login:password';
$config['recaptcha_proxy_auth'] = false;
// Log events
$config['recaptcha_log'] = false;
// Recaptcha widget theme: light | dark (only for v2*)
$config['recaptcha_theme'] = 'light';
// Recaptcha widget size: normal | compact (only for v2*)
$config['recaptcha_size'] = 'normal';
// Event is not logged when set to NULL
// Parameter expansion:
// %r - Remote IP
// %u - Username
$config['recaptcha_log_success'] = 'Verification succeeded for %u. [%r]';
$config['recaptcha_log_failure'] = 'Error: Verification failed for %u. [%r]';
$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
$config['rcguard_ipv6_prefix'] = 0;
// Do not show recaptcha for this IPs
$config['rcguard_ignore_ips'] = [];
// Do not show recaptcha of these networks
$config['recaptcha_whitelist'] = [];