ipMatch
描述:对REMOTE_ADDR变量进行快速ipv4或ipv6匹配。可以处理以下格式:
完整IPv4地址 - 192.168.1.100
网络块/CIDR地址 - 192.168.1.0/24
完整的IPv6地址 - 2001:db8:85a3:8d3:1319:8a2e:370:7348
网络块/CIDR地址 - 2001:db8:85a3:8d3:1319:8a2e:370:0/24
版本:2.7
例:
个别地址:
SecRule REMOTE_ADDR "@ipMatch 192.168.1.100" "id:161"
具有网络块的多个地址:
SecRule REMOTE_ADDR "@ipMatch 192.168.1.100,192.168.1.50,10.10.50.0/24" "id:162"
Created with the Personal Edition of HelpNDoc: Easy EPub and documentation editor