Skip to content
/ s1waf Public

simple ip_uri based web application firewall

Notifications You must be signed in to change notification settings

cxfcxf/s1waf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

simple waf for discuz to prevent duplicating post submit

we can also decode body to get formhash, which might be more percise as a hex key components

#how to in nginx.conf

    1. set a lua shared DICT called waf inside nginx
    1. initialize a variable called $postctl
set $postctl 10  <- 10 sec between posts
    1. initialize access control
access_by_lua_file waf.lua;

#a reload is required each time you change $postctl value inside nginx.conf

About

simple ip_uri based web application firewall

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages