Forum Discussion
Kai_Wilke
Feb 22, 2016MVP
Hi Eric,
you may try this snippet...
when HTTP_REQUEST {
if { (( [HTTP::header value "User-Agent"] contains "Mozilla" ) or
( [HTTP::header value "User-Agent"] contains "Opera" )) and
( [string tolower [HTTP::uri]] matches_regex {restservicestest} ) and
not ( [HTTP::cookie names] contains ".test" ) } then {
reject
log local0. "Client browser trying to connect to REST Host:[HTTP::host]; URI = [HTTP::uri] No SSO Cookie Detected, Client IP:[IP::client_addr] has been blocked"
}
}
Cheers, Kai