Forum Discussion
Kevin_Stewart
Sep 30, 2013Employee
That looks good. I also see that you went from matchclass to class match. You could technically streamline a little bit more by negating the UnrestrictedUris condition:
when CLIENT_ACCEPTED {
HTTP::enable
}
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/the-websocket-uri") } {
HTTP::disable
} elseif { not ( [class match [HTTP::uri] starts_with UnrestrictedUris] ) } {
Drop the request
drop
}
}