3 Star 1 Fork 2

Gitee 极速下载/cheerwaf

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/chwjbn/cheerwaf
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
null- null uuid打补丁 3f57f65 5 years ago
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

Cheerwaf

设计背景

在一些大型信息展示的站点中,每天会面对大量的恶意漏洞盲扫、爬虫采集,往往在这样的站点场景中,流量很大,很难区分哪些是真实流量,哪些是采集垃圾流量,因此需要一个灵活规则的过滤器来进行筛选和拦截,笔者当时所在的云财经就是这么一个场景,每天的独立访问用户几十万,其中有效行为访问用户不到40%,针对这种场景开发了基于灵活自定义规则的web应用防火墙

架构

cheerwaf是基于openresty设计的web应用防火墙,技术架构如下: image

  • 防火墙逻辑部分采用openresty
  • 防火墙规则读取采用二级缓存设计,nginx内存+redis
  • waf的管理端采用thinkphp编写,规则保存在mysql,然后发布到redis
  • waf规则过滤主要通过access_by_lua_file实现
  • waf支持放行、拦截、行为可信加分、行为可疑加分
  • waf支持的行为粒度单次会话、访客(cookie)、注册用户(cookie)、IP地址
  • waf规则触发条件支持http头各字段、cookie字段、行为粒度的打分、行为粒度的单位时间访问次数
  • waf规则内置IP段抓取防护
  • waf规则内置伪搜索引擎蜘蛛防护

产品截图

image image image image

开源地址

支持

image

Empty file

About

设计背景 在一些大型信息展示的站点中,每天会面对大量的恶意漏洞盲扫、爬虫采集,往往在这样的站点场景中,流量很大,很难区分哪些是真实流量,哪些是采集垃圾流量,因此需要一个灵活规则的过 expand collapse
PHP and 6 more languages
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/cheerwaf.git
git@gitee.com:mirrors/cheerwaf.git
mirrors
cheerwaf
cheerwaf
master

Search