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?
- Samir_Jha_52506
Noctilucent
As my understanding, We can't think L7 ADC without HTTP method(GET , POST, etc). In that case use L4 forwarding VIP to restrict http method.
@Expert, Please add your points.
- Abdessamad1
Cirrostratus
Dear,
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 } } }
- Stanislas_Piro2
Cumulonimbus
In HTTP profile Enforcement section, you can define :
- Known Methods : list all allowed methods
- Unknown Method : Reject to deny all methods not in Known Methods list.
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