Forum Discussion
Daniel_Mansilla
Nimbostratus
May 14, 2018Best form to restrict http method
What is the best option if i want to restrict http method with http profile or Irule?
Abdessamad1
Cirrostratus
May 14, 2018Dear,
I don't think it's possible via a http profile.
But you can use an iRule or a LTM policy to restrict. Here is an example of the iRule:
when HTTP_REQUEST {
switch [HTTP::method] {
"GET" -
"POST" -
"HEAD" {
return
}
default {
HTTP::respond 403
}
}
}
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