]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc: add http.location and http.server
authorJeff Lucovsky <jeff@lucovsky.org>
Wed, 27 Feb 2019 23:58:44 +0000 (18:58 -0500)
committerVictor Julien <victor@inliniac.net>
Fri, 22 Mar 2019 12:12:25 +0000 (13:12 +0100)
doc/userguide/rules/http-keywords.rst

index e43c292bf71c5e788df4a1d71e927599ae40a8ee..2f8c041e34c9258b3c014ded0de08ad71d2e2b21 100644 (file)
@@ -60,6 +60,8 @@ http_header                    Modifier                 Both
 http_raw_header                Modifier                 Both
 http_cookie                    Modifier                 Both
 http_server_body               Modifier                 Response
+http.server                    Modifier                 Response
+http.location                  Modifier                 Response
 file_data                      Sticky Buffer            Response
 http_content_type              Sticky Buffer            Both
 http_content_len               Sticky Buffer            Both
@@ -590,6 +592,29 @@ Notes
 
 -  further notes at the ``file_data`` section below.
 
+http.server
+-----------
+
+Sticky buffer to match on the HTTP Server headers. Only contains the
+header value. The \\r\\n after the header are not part of the buffer.
+
+Example::
+
+    alert http any any -> any any (flow:to_client; \
+            http.server; content:"Microsoft-IIS/6.0"; sid:1;)
+
+http.location
+-------------
+
+Sticky buffer to match on the HTTP Location headers. Only contains the
+header value. The \\r\\n after the header are not part of the buffer.
+
+Example::
+
+    alert http any any -> any any (flow:to_client; \
+            http.location; content:"http://www.google.com"; sid:1;)
+
+
 http_host and http_raw_host
 ---------------------------