最新文章

未分类

ngx_http_fx_waf conf

#开关 fx_waf on; #IPV4 白名单目录 fx_waf_white_directory "/home/local/nginx/conf/"; #js 验证方式 fx_waf_bot_check_mode  3; #js 验证失败阈值次数 fx_waf_bot_fail_max_count 10; #ONLY GET FLAG fx_bot_chec
阅读全文
未分类

JAVA 工具类 IPUtils

/**  * Copyright (c) 2016-2019 ants All rights reserved.  *  *   * 版权所有,侵权必究!  */ package io.ants.common.utils; import com.alibaba.druid.util.StringUtils;
阅读全文
杂谈

NGINX 模块开发 ip hash 方式

static ngx_uint_t get_ip_addr_crc(ngx_connection_t* c, int algorithm) {     ngx_int_t ip_type = c->sockaddr->sa_family;// r->connection->sockaddr->sa_family; &nb
阅读全文