Giter VIP home page Giter VIP logo

web-server-plus's Introduction

说明

分析访问日志使用iptables禁止过于频繁的IP,可以用来防DDOS,恶意访问,采集

#帮助 ##封禁IP访问80端口 iptables -I INPUT -p tcp --dport 80 -s 192.168.1.101 -j DROP ##查看规则 iptables --list --line-numbers ##删除指定规则 iptables -D INPUT 3 ##清空规则 iptalbles -F

#使用 allow.config是白名单IP(一行一个) bad_str.config是日志当中禁止出现的字符串(一行一个) deny.log加入黑名单的IP记录 temp.log是临时日志文件 bad_vis_ips.log是超出访问限制的ip(一行一个) bad_str_ips.log是禁止出现的字符串IP(一行一个) bad_ips.log是bad_vis_ips.log和bad_str_ips.log的合并去重

#定时任务 */1 * * * * sh /root/scripts/plus.sh 1 60

web-server-plus's People

Contributors

joyousphper avatar

Watchers

 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.