Hi all, I am looking to get an iRule to drop traffic and return with an Error Message when a string in a particular data group list is matched. The URI is under a data group list called commstgtest. I am using the iRule as below which blocks the page but what I want is to display a an Error Message ‘Resource Unavailable’ and close the connection.
when HTTP_REQUEST { if {[class match [string tolower [HTTP::uri]] ends_with commstgtest]} { HTTP::close } }