Forum Discussion
MaximP
Oct 13, 2021Cirrus
Hi, Ahmed.
You need to use an Irule, something like this
when HTTP_REQUEST {
if { ([string toupper [HTTP::method]] equals "POST" ) or ([string toupper [HTTP::method]] equals "PATCH" ) or ([string toupper [HTTP::method]] equals "DELETE" ) } {
node 1.1.1.1 443
}
elseif { [string toupper [HTTP::method]] equals "GET" } {
pool POOL-name
}
else {
HTTP::respond 405 content {
<html>
<head><title>HTTP Request denied</title></head>
<body>Your HTTP requests are being throttled.</body>
</html>
}
}
}