Skip to content
ModSecurity Golang middleware
Branch: master
Clone or download
Pull request Compare This branch is 17 commits behind senghoo:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
libmodsecurity
modsecurity
LICENSE
README.md

README.md

This Source not working yet now !!!

ModSecurity-Go

ModSecurity middleware for go

Dependency

Install

Install Guide

Usage

LibModSecurity

libmodsecurity := NewLibModSecurity()
libmodsecurity.addRule("...")

trans := libmodsecurity.NewTransaction()
trans.ProcessConnection("192.168.1.2","www.example.com", 55332, 80)
trans.ProcessURL("/a.php?test=test", "GET ", 1, 1)
trans.ProcessRequestHeader()
checkThis :=  trans.Intervention() 

You can’t perform that action at this time.