一个纯NGINX实现的CC防御程序
11220
- 360安全卫士2012-11-16论坛元老23620
- 本帖最后由 360安全卫士 于 2012-11-16 11:41 编辑 *
- 下载(链接12小时内有效) http://codeshare.oss.aliyuncs.com/nginx_%E7%AE%80%E5%8D%95HTTP%20FLOOD%E9%98%B2%E6%8A%A4.rar?OSSAccessKeyId=609bvqdunvuqsrimqn9nsosd&Expires=1353080086&Signature=hsNETs3ILTphplKZ42dcdlN%2Bgls%3D
- 复制代码演示地址:https://bbs.meidu.info/

原理分析:
当连接数超过100,NGINX会自动将未通过签名验证的请求输出签名,并302刷新- Request URL:https://bbs.meidu.info/- Request Method:GET
- Status Code:302 Found
- Accept:text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
- Accept-Charset:GBK,utf-8;q=0.7,*;q=0.3
- Accept-Encoding:gzip,deflate,sdch
- Accept-Language:zh-CN,zh;q=0.8
- Connection:keep-alive
- Cookie:ds=0; editmode=0
- Host:bbs.meidu.info
- Referer:https://bbs.meidu.info/
- User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11
- Response Headersview source
- Cache-Control:max-age=10
- Connection:keep-alive
- Content-Length:266
- Content-Type:text/html
- Date:Fri, 16 Nov 2012 03:35:08 GMT
- Expires:Fri, 16 Nov 2012 03:35:18 GMT
- Location:https://bbs.meidu.info/?20121116113508
- Set-Cookie:enx=74f982a0fa357714a05e4fa9e85093cc; # 这是签名
- 复制代码302过后的请求- Request URL:https://bbs.meidu.info/?20121116113508
- Request Method:GET
- Status Code:200 OK
- Accept:text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
- Accept-Charset:GBK,utf-8;q=0.7,*;q=0.3
- Accept-Encoding:gzip,deflate,sdch
- Accept-Language:zh-CN,zh;q=0.8
- Connection:keep-alive
- Cookie:ds=0; editmode=0; enx=74f982a0fa357714a05e4fa9e85093cc #最后一段COOKIE就是签名
- Host:bbs.meidu.info
- Referer:https://bbs.meidu.info/
- User-Agent:Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11
- Query String Parametersview URL encoded
- 20121116113508:
- Response Headersview source
- Cache-Control:max-age=10
- Connection:keep-alive
- Content-Encoding:gzip
- Content-Type:text/html
- Date:Fri, 16 Nov 2012 03:35:08 GMT
- Expires:Fri, 16 Nov 2012 03:35:18 GMT
- Transfer-Encoding:chunked
- 复制代码亲懂的,如果有需要,可以PM我联系方式手工帮你配置,当然,付费的哈