From 11806875741d317c6f85f3d74b1f5bfb2d82f25b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 5 Oct 2017 11:11:13 +0200 Subject: [PATCH] doc/file_data: add note on negated matching Explain issue #2216 and how to avoid it. --- doc/userguide/rules/http-keywords.rst | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/doc/userguide/rules/http-keywords.rst b/doc/userguide/rules/http-keywords.rst index 5e0eaeab4d..6d38460b97 100644 --- a/doc/userguide/rules/http-keywords.rst +++ b/doc/userguide/rules/http-keywords.rst @@ -591,6 +591,8 @@ Notes - Corresponding PCRE modifier: ``Q`` +- further notes at the ``file_data`` section below. + http_host and http_raw_host --------------------------- @@ -673,11 +675,30 @@ rule. This makes it a useful shortcut for applying many content matches to the HTTP response body, eliminating the need to modify each content match individually. -Note: how much of the response/server body is inspected is controlled +As the body of a HTTP response can be very large, it is inspected in +smaller chunks. + +How much of the response/server body is inspected is controlled in your :ref:`libhtp configuration section ` via the ``response-body-limit`` setting. +Notes +~~~~~ + +- If a HTTP body is using gzip or deflate, ``file_data`` will match + on the decompressed data. + +- Negated matching is affected by the chunked inspection. E.g. + 'content:!"