mirror of https://github.com/Safe3/uuWAF
parent
21d407a0f3
commit
42f9ebe8e4
|
@ -1,3 +1,18 @@
|
|||
## [5.4.0](https://github.com/Safe3/uuWAF/compare/v5.4.0...v5.3.0) (2024-09-29)
|
||||
|
||||
|
||||
### 功能更新
|
||||
|
||||
- 升级配置同步机制,提升性能并降低数据库资源消耗
|
||||
- 升级XSS语义检测引擎,进一步降低误报
|
||||
- 升级ip地理位置数据库,提升位置准确性
|
||||
- 调整日志默认查询数量,大幅提升日志高级查询速度
|
||||
- 上传文件名过滤增强,新增htmlentity解码
|
||||
- 新增log.utf8、log.getReq等多个api函数
|
||||
- 优化安装脚本,提升Linux系统兼容性
|
||||
|
||||
|
||||
|
||||
## [5.3.0](https://github.com/Safe3/uuWAF/compare/v5.3.0...v5.2.0) (2024-08-29)
|
||||
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
- 处理器:64位 1千兆赫(GHz)或更快。
|
||||
- 内存:不小于2G
|
||||
- 磁盘空间:不小于16G
|
||||
- 系统:CentOS系8及以上兼容x86_64系统,如Rocky Linux、AlmaLinux等,其它请使用Docker版。
|
||||
- 系统:RHEL 8及以上兼容x86_64系统,如Rocky Linux、AlmaLinux等,其它请使用Docker版。
|
||||
```
|
||||
|
||||
|
||||
|
|
BIN
docs/update.tgz
BIN
docs/update.tgz
Binary file not shown.
BIN
docs/waf-install
BIN
docs/waf-install
Binary file not shown.
|
@ -1 +1 @@
|
|||
5.3.0
|
||||
5.4.0
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
危险等级: 低危
|
||||
|
||||
规则描述: 限制非中国地区访问网站
|
||||
规则描述: 限制非大陆地区访问网站
|
||||
--]]
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ if waf.contains(waf.ip,":") then
|
|||
end
|
||||
|
||||
local country, province, city = waf.ip2loc(waf.ip)
|
||||
if country ~= "中国" and country ~= "内网IP" then
|
||||
return true, "限制非中国地区访问", true
|
||||
if country ~= "中国" and city ~= "内网IP" then
|
||||
return true, "限制非大陆地区访问", true
|
||||
end
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue