Forum Discussion
Adil_Khan_31203
Cirrus
Jun 05, 2018iRule to display Error message and close connection
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. ...
Lee_Sutcliffe
Nacreous
Jun 05, 2018You could use an iRule like this to respond with the message then drop if you want to close the connection
when HTTP_REQUEST {
if {[class match [string tolower [HTTP::uri]] ends_with commstgtest]} {
HTTP::respond 403 content "Resource Unavailable"
drop
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects