Skip to content

Commit

Permalink
v5.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Safe3 committed Sep 29, 2024
1 parent 21d407a commit 42f9ebe
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
15 changes: 15 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion docs/guide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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版。
```


Expand Down
Binary file modified docs/update.tgz
Binary file not shown.
Binary file modified docs/waf-install
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/wafversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.3.0
5.4.0
6 changes: 3 additions & 3 deletions rules/geo-block.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
危险等级: 低危
规则描述: 限制非中国地区访问网站
规则描述: 限制非大陆地区访问网站
--]]


Expand All @@ -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

0 comments on commit 42f9ebe

Please sign in to comment.