mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-13 15:07:10 +03:00
Add "phase:1" to all initcol examples (MODSEC-80).
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
Manual</title>
|
Manual</title>
|
||||||
|
|
||||||
<articleinfo>
|
<articleinfo>
|
||||||
<releaseinfo>Version 2.5.10-dev1 (July 27, 2009)</releaseinfo>
|
<releaseinfo>Version 2.5.10 (Aug 3, 2009)</releaseinfo>
|
||||||
|
|
||||||
<copyright>
|
<copyright>
|
||||||
<year>2004-2009</year>
|
<year>2004-2009</year>
|
||||||
@@ -533,7 +533,7 @@ LoadFile /usr/lib/liblua5.1.so</programlisting></para>
|
|||||||
|
|
||||||
<para><emphasis>Example Usage:</emphasis> <literal
|
<para><emphasis>Example Usage:</emphasis> <literal
|
||||||
moreinfo="none">SecAction
|
moreinfo="none">SecAction
|
||||||
nolog,initcol:RESOURCE=%{REQUEST_FILENAME}</literal></para>
|
nolog,phase:1,initcol:RESOURCE=%{REQUEST_FILENAME}</literal></para>
|
||||||
|
|
||||||
<para><emphasis>Processing Phase:</emphasis> Any</para>
|
<para><emphasis>Processing Phase:</emphasis> Any</para>
|
||||||
|
|
||||||
@@ -4753,10 +4753,14 @@ setvar:session.suspicious=1,<emphasis>expirevar:session.suspicious=3600</emphasi
|
|||||||
<para>Example: The following example initiates IP address
|
<para>Example: The following example initiates IP address
|
||||||
tracking.</para>
|
tracking.</para>
|
||||||
|
|
||||||
<programlisting format="linespecific">SecAction<emphasis> initcol:ip=%{REMOTE_ADDR}</emphasis>,nolog</programlisting>
|
<programlisting format="linespecific">SecAction <emphasis>phase:1,initcol:ip=%{REMOTE_ADDR}</emphasis>,nolog</programlisting>
|
||||||
|
|
||||||
<para><emphasis>Note</emphasis></para>
|
<para><emphasis>Note</emphasis></para>
|
||||||
|
|
||||||
|
<para>Normally you will want to use <emphasis>phase:1</emphasis>
|
||||||
|
along with <emphasis>initcol</emphasis> so that the collection is
|
||||||
|
available in all phases.</para>
|
||||||
|
|
||||||
<para>Collections are loaded into memory when the initcol action is
|
<para>Collections are loaded into memory when the initcol action is
|
||||||
encountered. The collection in storage will be persisted (and the
|
encountered. The collection in storage will be persisted (and the
|
||||||
appropriate counters increased) <emphasis>only</emphasis> if it was
|
appropriate counters increased) <emphasis>only</emphasis> if it was
|
||||||
@@ -4775,7 +4779,7 @@ setvar:session.suspicious=1,<emphasis>expirevar:session.suspicious=3600</emphasi
|
|||||||
|
|
||||||
<para>Example:</para>
|
<para>Example:</para>
|
||||||
|
|
||||||
<programlisting format="linespecific">SecAction initcol:ip=%{REMOTE_ADDR},<emphasis>log</emphasis></programlisting>
|
<programlisting format="linespecific">SecAction phase:1,initcol:ip=%{REMOTE_ADDR},<emphasis>log</emphasis></programlisting>
|
||||||
|
|
||||||
<para><emphasis>Note</emphasis></para>
|
<para><emphasis>Note</emphasis></para>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user