Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当所有 IPS 都像 90.12.131 一样开始时,如何将 IP 添加到我的 mod_security“whitelist.file”。会开吗?
我尝试在 IP 之前添加 ^ 但它不起作用。^90.12.131
请问,有人吗?谢谢,奥兹。
SecRule REMOTE_ADDR "^90\.12\.131" "phase:1,nolog,allow"
或者
SecRule REMOTE_ADDR "@ipMatch 90.12.131.0/24" "phase:1,nolog,allow"
写入文件,像这样
whitelist.file,以点结尾
90.12.131。
SecRule REMOTE_ADDR "@pmf whitelist.file" "phase:1,nolog,allow"