Snort - the de facto standard for intrusion detection/prevention
next up previous contents
Next: byte_test Up: pcre Previous: Format   Contents

Example

This example performs a case-insensitive search for the string BLAH in the payload.

alert ip any any -> any any (pcre:"/BLAH/i";)

Note:   Snort's handling of multiple URIs with PCRE does not work as expected. PCRE when used without a uricontent only evaluates the first URI. In order to use pcre to inspect all URIs, you must use either a content or a uricontent.



Steven Sturges 2007-10-04