diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 7a07cc9..61f8689 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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) diff --git a/docs/guide/install.md b/docs/guide/install.md index c4bcf6f..1a3c8f8 100644 --- a/docs/guide/install.md +++ b/docs/guide/install.md @@ -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版。 ``` diff --git a/docs/update.tgz b/docs/update.tgz index 026c656..04d6050 100644 Binary files a/docs/update.tgz and b/docs/update.tgz differ diff --git a/docs/waf-install b/docs/waf-install index bcba424..cef5cef 100644 Binary files a/docs/waf-install and b/docs/waf-install differ diff --git a/docs/wafversion b/docs/wafversion index ff79144..70a785d 100644 --- a/docs/wafversion +++ b/docs/wafversion @@ -1 +1 @@ -5.3.0 \ No newline at end of file +5.4.0 \ No newline at end of file diff --git a/rules/geo-block.lua b/rules/geo-block.lua index 7e59cf2..34810d4 100644 --- a/rules/geo-block.lua +++ b/rules/geo-block.lua @@ -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