Code Monkey home page Code Monkey logo

cloudflareiplimit's Introduction

cloudflareIPLimit

别指望1C1G能逆天

原理: 类似于速率限制, 并自动拉黑到CF内

注意: 存在一定的误封(根据实际设置的访问次数阈值决定).
误封处理: 去cf防火墙-工具 手动设置对应ip为允许或从黑名单内删除.
  • 自行对照nginx.conf进行修改配置即可
  • 修改需要防御的站点配置 根据3byte.me.conf对照修改
  • 将cfc.sh放入/www/wwwlogs/目录下 并编辑配置.
  • 配置一个定时任务, 1-3分钟都行.bash /www/wwwlogs/cfc.sh
  • 配置一个日志切割, 因为cfc.sh会遍历网站日志文件, 如果文件太大会消耗很长时间.

防止tls扫描源IP

  • 1.新建一个网站, 域名填写你服务器的IP
  • 2.使用IPSSL文件内ssl进行配置SSl证书,并保存开启SSL
  • 3.默认站点(宝塔英语版自行翻译) 选择新建的IP网站

注意:

  • 不懂的自行研究.
  • 被攻击时可以加点CF防火墙规则, 比如分析攻击IP, 开启部分偏远冷门国家地区js质疑等规则.
  • 一切都自己根据实际需求灵活配置即可.

如何配置多个网站

  • 重复上面的操作就行了

  • 不懂的自行研究, 没时间一个一个回答, 感谢理解.

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.