mod_security正确的字符串

时间:2018-08-26 18:32:10

标签: string mod-security

字符串必须位于11aaAA的位置!

11aaAA !!是一个示例,可以包含不同的字母,数字和标点符号

我认为字符串必须像这样:[0-9a-zA-Z- \ x20 _。] {0,64}

谁可以帮助我提供正确的代码? 我需要这个字符串进行实验。

                            (domeinname|domein_name).com
                            (domeinname|domein_name)11aaAA!!.com
                    11aaAA!!(domeinname|domein_name).com
                    11aaAA!!(domeinname|domein_name)11aaAA!!.com
           11aaAA!!.11aaAA!!(domeinname|domein_name).com
           11aaAA!!.11aaAA!!(domeinname|domein_name).11aaAA!!.com
  11aaAA!!.11aaAA!!.11aaAA!!(domeinname|domein_name).com
  11aaAA!!.11aaAA!!.11aaAA!!(domeinname|domein_name).11aaAA!!.com

SecAction "id:90300,pass,phase:1,nolog,noauditlog,t:none,initcol:ip=%{remote_addr}"
SecRule REMOTE_HOST "^(domeinname|domein_name).*$" "id:90301,deny,phase:1,nolog,noauditlog,t:none,status:406,logdata:'Remote_user-agent:%{REQUEST_HEADERS.User-Agent}, Country_Code:%{geo.country_code}, Remote_hostname:%{remote_host}, Remote_address:%{remote_addr}, Port:%{server_port}, X-Forwarded-For: %{tx.geo_x-forwarded-for}'"

0 个答案:

没有答案