摘要:参考文档:https://www.cnblogs.com/cheyunhua/p/13395745.html 1、openrestry配置 功能控制在:/usr/local/openrestry/nginx/conf/waf/config.lua 过滤参数在:/usr/local/openrestr
阅读全文
摘要:先记号参考文档: https://www.cnblogs.com/cheyunhua/p/13395745.html https://blog.csdn.net/chuanxincui/article/details/86089763
阅读全文
摘要:add_header X-XSS-Protection 1; add_header X-Frame-Options SAMEORIGIN always; add_header X-Content-Type-Options 'nosniff'; add_header Referrer-Policy "
阅读全文
摘要:#!/bin/sh # # DropBrute.sh @20130516 # # minimalist OpenWRT/dropbear ssh brute force attack banning script # # Installation steps: # # 1) Optionally e
阅读全文
摘要:本想测试一下开源WAF,看了文章要用到nginx-lua模块,一般情况下nginx加模块需要手工编译源代码,对于懒人来说,手工编译是什麻烦事,所以就放狗找现在nginx-all-modules的rpm去了 找到一篇参考文章: https://centos.pkgs.org/7/epel-armhfp
阅读全文
摘要:1、直接返回来访IP location /ip { default_type text/plain; return 200 $remote_addr; } 2、流转发及写日志、开启websocket: log_format stream '$remote_addr ($remote_user) $t
阅读全文
摘要:在nginx.conf里加入stream { server { listen 18443; proxy_pass 58.xxx.xxx.xxx:8443; }}centos7中yum安装的ngixn其实是带stream模块的,但...
阅读全文