Regular Expressions 101

Community Patterns

Layer7 Filter for HTTP

0

Regular Expression
PCRE (PHP <7.3)

/
^(get|post|head|options|put|delete|trace|connect) [\x09-\x0d -~]*? http\/(0\.9|1\.0|1\.1)|^http\/(0\.9|1\.0|1\.1) [1-5][0-9][0-9]
/
si

Description

For use with router layer 7 filtering, will detect intial connection or initial response

Submitted by Andrew Cox - 8 years ago