Watch 1 Star 1 Fork 1

xiaomabetter / wafLua

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
基于openresy limit模块扩展的限流、防刷、防CC攻击等功能waf模块 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

waf

介绍

基于openresy limit模块扩展的限流、防刷、防CC攻击等功能waf模块

安装教程

export INSTALL_HOME=/opt/;export OPENRESTY_HOME=/opt/openresty

1、安装OpenResty 目前使用的是最新版本openresty-1.15.8.1 cd $INSTALL_HOME wget https://openresty.org/download/openresty-1.15.8.1.tar.gz tar -zxf openresty-1.15.8.1.tar.gz && cd openresty-1.15.8.1 ./configure --prefix=$OPENRESTY_HOME && make && make install

2、下载防刷限流功能脚本到 $OPENRESTY_HOME/site/目录,并解压 curl -o $OPENRESTY_HOME/site/waf.zip https://gitee.com/xiaomabetter/waf/repository/archive/master.zip cd $OPENRESTY_HOME/site/ ; unzip waf.zip && rm -f waf.zip

3、配置openresty的配置文件nginx.conf ,将以下配置加入到http配置中 lua_shared_dict my_limit_count_store 50m; lua_shared_dict my_limit_conn_store 50m; lua_package_path "/opt/openresty/site/waf/?.lua;;"; access_by_lua_file "/opt/openresty/site/waf/access.lua";

使用说明

  1. xxxx

Comments ( 0 )

Sign in for post a comment

Lua
1
https://gitee.com/xiaomabetter/waf.git
git@gitee.com:xiaomabetter/waf.git
xiaomabetter
waf
waf
master

Help Search

191139_cd20d5fd_5186603 191143_ebef6f8d_5186603