Giter VIP home page Giter VIP logo

http-guard's Introduction

http-guard简介

这个是基于openresty开发出来的web防火墙,主要功能有
*   静态页面防cc攻击
*   动态页面防cc攻击(包括js跳转认证)
*   防止sql注入攻击
*   防止上传php webshell
*   防止xss攻击
*   取消特定目录php执行权限

安装方法

代码下载回来后,执行install.sh脚本开始安装。

使用方法

复制conf目录下的lua文件到/usr/local/nginx/conf下,在nginx.conf配置文件中的http代码段加入如下代码:
    lua_shared_dict http_guard 10m;
    init_by_lua_file 'conf/init.lua';
    header_filter_by_lua_file 'conf/send_cookie.lua';
    access_by_lua_file 'conf/http_guard.lua';
	
一些初始参数可以在init.lua文件修改	

http-guard's People

Contributors

centos-bz avatar

Watchers

James Cloos avatar WD avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.