doc: update http.accept keyword information

Ticket: 3025

Signed-off-by: jason taylor <jtfas90@gmail.com>
pull/10795/head
jason taylor 1 year ago committed by Victor Julien
parent 8307168ae7
commit 9e87d89d2e

@ -446,12 +446,24 @@ Example Duplicate User-Agent Header Request::
http.accept
-----------
Sticky buffer to match on the HTTP Accept header. Only contains the header
value. The \\r\\n after the header are not part of the buffer.
The ``http.accept`` keyword is used to match on the Accept field that
can be present in HTTP request headers.
Example::
It is possible to use any of the :doc:`payload-keywords` with the
``http.accept`` keyword.
Example HTTP Request::
GET /index.html HTTP/1.1
User-Agent: Mozilla/5.0
Accept: */*
Host: suricata.io
.. container:: example-rule
alert http any any -> any any (http.accept; content:"image/gif"; sid:1;)
alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"HTTP Accept Example"; \
flow:established,to_server; :example-rule-options:`http.accept;
content:"*/*";` bsize:3; classtype:bad-unknown; sid:91; rev:1;)
.. _http.accept_enc:

Loading…
Cancel
Save