mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Change @eq to @streq. See #54.
This commit is contained in:
@@ -4019,22 +4019,6 @@ SecRule ARGS:route "!<emphasis role="bold">@endsWith %{REQUEST_ADDR}</emphasis>"
|
||||
role="bold">@inspectFile </emphasis>/opt/apache/bin/inspect_script.pl"</programlisting>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<title><literal>is</literal></title>
|
||||
|
||||
<para><emphasis role="bold">Description: </emphasis>This operator is a
|
||||
string comparison and returns true if the parameter value matches the
|
||||
input exactly. Macro expansion is performed so you may use variable
|
||||
names such as %{TX.1}, etc.</para>
|
||||
|
||||
<para>Example:</para>
|
||||
|
||||
<programlisting format="linespecific">SecRule ARGS:foo "!<emphasis
|
||||
role="bold">@is bar</emphasis>" t:none,deny,status:403
|
||||
SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
|
||||
SecRule REQUEST_HEADERS:Ip-Address "!<emphasis role="bold">@is %{TX.1}</emphasis>"</programlisting>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<title><literal>le</literal></title>
|
||||
|
||||
@@ -4115,6 +4099,22 @@ SecRule REQUEST_HEADERS:Ip-Address "!<emphasis role="bold">@is %{TX.1}</emphasis
|
||||
</orderedlist>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<title><literal>streq</literal></title>
|
||||
|
||||
<para><emphasis role="bold">Description: </emphasis>This operator is a
|
||||
string comparison and returns true if the parameter value matches the
|
||||
input exactly. Macro expansion is performed so you may use variable
|
||||
names such as %{TX.1}, etc.</para>
|
||||
|
||||
<para>Example:</para>
|
||||
|
||||
<programlisting format="linespecific">SecRule ARGS:foo "!<emphasis
|
||||
role="bold">@streq bar</emphasis>" t:none,deny,status:403
|
||||
SecRule REQUEST_ADDR "^(.*)$" deny,status:403,capture,chain
|
||||
SecRule REQUEST_HEADERS:Ip-Address "!<emphasis role="bold">@streq %{TX.1}</emphasis>"</programlisting>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<title><literal>validateByteRange</literal></title>
|
||||
|
||||
|
Reference in New Issue
Block a user