摘要: nginx可以通过ngx_http_limit_conn_module和ngx_http_limit_req_module配置来限制ip在同一时间段的访问次数. ngx_http_limit_conn_module:该模块用于限制每个定义的密钥的连接数,特别是单个IP​​地址的连接数.使用limit 阅读全文
posted @ 2017-08-02 14:15 至尊宝等待紫霞的日子 阅读(9638) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash##for centos7 iptables table##yum install iptables-services -y###规则的排列是有顺序的##清除默认规则 iptables -Fiptables -Xiptables -Z #设置策略 iptables -P INP 阅读全文
posted @ 2017-07-28 15:00 至尊宝等待紫霞的日子 阅读(489) 评论(0) 推荐(0) 编辑