-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
82 lines (64 loc) · 5.24 KB
/
config.php
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
69
70
71
72
73
74
75
76
77
78
79
80
<?php
/**
* CONTROL AND PROTECTION OF THE SITE SYSTEM (CPSS)
*
* ______ ____ _____ _____ __ _ __
* / ____/ / __ \ / ___/ / ___/ / / (_) / /_ ___
* / / / /_/ / \__ \ \__ \ / / / / / __/ / _ \
* / /___ / ____/ ___/ / ___/ / / /___ / / / /_ / __/
* \____/ /_/ /____/ /____/ /_____//_/ \__/ \___/
*
* @copyright Copyright (C) 2016 Sergey Bunin. All rights reserved.
* @license GNU General Public License version 2 or later.
*
* Конфигурация CPSS
*/
class CPSS_Config {
/* Управление сайтом */
public $offline = 0; // Если этот параметр установить в TRUE, доступ к сайту будет отключен.
public $pullon = 0; // Включение принудительной паузы перед запуском системы.
public $pulltime = 1; // Длительность принудительной паузы в секундах, но не более 25.
public $pullurl = array(); // Массив адресов, где не применяется принудительная пауза.
public $operating_mode = 0; // Боевой режим. Если FALSE, то система не блокирует адреса.
public $presetsmatch = ''; // Название пресета настроек в папке /waf/presets для блокировки доступа к файлам.
/* Настройка уведомлений */
public $mail_from = '[email protected]'; // Адрес, с которого отправляются уведомления (отправитель)
public $mail_to = '[email protected]'; // Адрес получателя письма
public $mail_send = false; // Включить/отключить отправку сообщений на почту
public $mail_period = 10; // Определяет максимальное количество писем в час
/* Настройка логирования */
public $log_get = 0; // логирование GET-запросов
public $log_post = 0; // логирование POST-запросов
public $log_cookies = 0; // логирование COOKIES
public $log_path = 'logs'; // Путь к папке логов относительно корня
public $log_timezone = 'Europe/Moscow'; // Временная зона. Список зон временных зон IANA: http://www.iana.org/time-zones
public $log_maxsize = ''; // Максимальный размер файла лога. При превышении этого порога будет создан новый файл.
/* Настройка WAF */
public $waf_on = 0; // Включение или отключение фильтра WAF.
public $waf_viewerr = 0; // Отображать ключ массива паттернов, на котором сработал фильтр. Используется для отладки.
public $waf_msgerr = "Request denied."; // Сообщение, выводимое при срабатывании фильтра.
public $waf_hidemsg = 0; // Определяет метод показа сообщений. Если TRUE, то вместо сообщений будет показана ошибка 503 (Service Temporarily Unavailable).
/* Настройка IPS */
public $ips_on = 0; // Включение/выключение проверки IP пользователя. TRUE - проверка включена.
public $ips_sleep = 5; // Время (сек.) задержки выполнения скрипта при обнаружении прокси. От 0 до 30.
public $ips_checkport = 1; // Включить или выключить проверку популярных для прокси портов (может замедлить работу).
public $ips_captcha = 0; // Включить или выключить страницу ввода капчи. Если включено, при обнаружении вместо паузы будет выводится страничка с капчой.
public $ips_useragent_on = 1; // Включить или выключить проверку USER-AGENT
public $ips_antiddos_on = 0; // Включить или выключить систему анти-DDOS.
public $ips_geocontrol = 0; // Включить блокировку стран по IP
public $ips_geocountry = array( // Массив разрешенных стран
'', 'RU', 'UA'
);
public $ips_dnsblon = 0; // Включить проверку DNSBL
public $ips_dnsbl = array( // Список серверов, на которых проходит проверка
'b.barracudacentral.org',
'xbl.spamhaus.org',
'zen.spamhaus.org',
'cbl.spamhaus.org',
'pbl.spamhaus.org',
'sbl.spamhaus.org'
);
/* SCF configuration */
public $scf_files = '(\.php.?|\.htaccess|\.txt)$'; // files pattern
public $scf_log = true; // write logs to ./logs/Ym/d-m-y.log
}