-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathconfig.lua
62 lines (45 loc) · 1.66 KB
/
config.lua
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
-----------------------------------------------------------------------------
-- Belial web waf
-- Author: 逆雪寒
-- Copyright (c) 2013
--
-----------------------------------------------------------------------------
local Conf = {
-----------------------------------------------------------------------------
belialFileLogPath = "/data/cake/log.belial",
attackHtmlPageName = "",
regularRule = "default",
allowIpAccess = {"172.16.1.*","127.0.0.1"},
alloAccessSpidersIp = {},
denyIPAccess = "/data/denyAccess.ip",--example:/data/denyAccess.ip
globaldenyIpNgxShareDictExptimeSecond = 3600,
toLog = "On",
cookieMatch = "On",
postMatch = "On",
whiteModule = "On",
ngxPathInfoFixModule = "On",
autoDenyIpModule = "On",
ccGlobalLog = "On",
ccMatch = "On",
-----------------------------------------------------------------------------
notAllowUploadFileExtension = {".php"},
-----------------------------------------------------------------------------
getTogether = "Off",
webProjectRootDirectory = "/usr/local/www/nginx",
allowAccessPostFilePath = "/data/allow.belial",
rejectPostLogPath = "/data/cake/reject.belial",
-------------------------------------------------------------------------------
attackAmount = 10,
autoDenyIpValidSecond = 86400,
autoDenyRuleExptimeSecond = 86400,
-----------------------------------------------------------------------------
ccGlobalAmount = 240,
ccGloablLogPath = "/data/cake/log.ccGlobal",
ccGlobalRuleExptimeSecond = 60,
ccDebug = "On",
ccDebugRequestAmount = 60,
ccDebugLogPath = "/data/cake/log.ccDebug",
ccDenyIpValidSecond = 36400,
ccDenyTagExptimeSecond = 60
}
return Conf