mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
160 lines
2.7 KiB
160 lines
2.7 KiB
{
|
|
"waf": {
|
|
"state": "on",
|
|
"mode": "protection",
|
|
"secret": "qwer1234"
|
|
},
|
|
"redis": {
|
|
"state": "off",
|
|
"host": "127.0.0.1",
|
|
"port": 6379,
|
|
"password": "Calong@2015",
|
|
"ssl": false,
|
|
"poolSize": 10
|
|
},
|
|
"ipWhite": {
|
|
"state": "on",
|
|
"type": "ipWhite",
|
|
"action": "allow"
|
|
},
|
|
"ipBlack": {
|
|
"state": "on",
|
|
"code": 403,
|
|
"action": "deny",
|
|
"type": "ipBlack",
|
|
"res": "ip"
|
|
},
|
|
"urlWhite": {
|
|
"type": "urlWhite",
|
|
"state": "on",
|
|
"action": "allow"
|
|
},
|
|
"urlBlack": {
|
|
"type": "urlBlack",
|
|
"state": "on",
|
|
"code": 403,
|
|
"action": "deny"
|
|
},
|
|
"uaWhite": {
|
|
"type": "uaWhite",
|
|
"state": "off",
|
|
"action": "allow"
|
|
},
|
|
"uaBlack": {
|
|
"type": "uaBlack",
|
|
"state": "on",
|
|
"code": 403,
|
|
"action": "deny"
|
|
},
|
|
"notFoundCount": {
|
|
"state": "off",
|
|
"type": "notFoundCount",
|
|
"threshold": 10,
|
|
"duration": 60,
|
|
"action": "deny",
|
|
"ipBlock": "on",
|
|
"ipBlockTime": 600
|
|
},
|
|
"methodWhite": {
|
|
"type": "methodWhite",
|
|
"state": "on",
|
|
"code": 444,
|
|
"action": "deny"
|
|
},
|
|
"bot": {
|
|
"state": "on",
|
|
"type": "bot",
|
|
"uri": "/1pwaf/bot/trap",
|
|
"action": "REDIRECT_JS",
|
|
"ipBlock": "on",
|
|
"ipBlockTime": 600
|
|
},
|
|
"geoRestrict": {
|
|
"state": "on",
|
|
"rules": [],
|
|
"code": 444,
|
|
"action": "deny",
|
|
"type": "geoRestrict"
|
|
},
|
|
"defaultIpBlack": {
|
|
"state": "on",
|
|
"type": "defaultIpBlack",
|
|
"code": 444,
|
|
"action": "deny"
|
|
},
|
|
"xss": {
|
|
"state": "on",
|
|
"type": "xss",
|
|
"code": 444,
|
|
"action": "deny"
|
|
},
|
|
"sql": {
|
|
"state": "on",
|
|
"type": "sql",
|
|
"code": 444,
|
|
"action": "deny"
|
|
},
|
|
"cc": {
|
|
"state": "off",
|
|
"type": "cc",
|
|
"tokenTimeOut": 1800,
|
|
"threshold": 120,
|
|
"duration": 60,
|
|
"action": "deny",
|
|
"ipBlock": "on",
|
|
"ipBlockTime": 600
|
|
},
|
|
"ccurl": {
|
|
"state": "off",
|
|
"type": "urlcc",
|
|
"action": "deny",
|
|
"ipBlock": "on",
|
|
"ipBlockTime": 600
|
|
},
|
|
"attackCount": {
|
|
"state": "off",
|
|
"type": "attackCount",
|
|
"threshold": 20,
|
|
"duration": 60,
|
|
"action": "deny",
|
|
"ipBlock": "on",
|
|
"ipBlockTime": 600
|
|
},
|
|
"fileExt": {
|
|
"state": "on",
|
|
"action": "deny",
|
|
"code": 403,
|
|
"type": "fileExtCheck"
|
|
},
|
|
"cookie": {
|
|
"type": "cookie",
|
|
"state": "on",
|
|
"code": 403,
|
|
"action": "deny"
|
|
},
|
|
"header": {
|
|
"state": "on",
|
|
"type": "header",
|
|
"code": 403,
|
|
"action": "deny"
|
|
},
|
|
"defaultUaBlack": {
|
|
"type": "defaultUaBlack",
|
|
"state": "on",
|
|
"code": 403,
|
|
"action": "deny"
|
|
},
|
|
"defaultUrlBlack": {
|
|
"type": "defaultUrlBlack",
|
|
"state": "on",
|
|
"code": 403,
|
|
"action": "deny"
|
|
},
|
|
"args": {
|
|
"type": "args",
|
|
"state": "on",
|
|
"code": 403,
|
|
"action": "deny"
|
|
}
|
|
}
|