Forum Discussion
rafaelbn_176840
Altocumulus
Jun 10, 2018Block specific SOAP method without ASM
Hello Devs!
Is it possible to block a specific SOAP method without ASM? Could an iRule do this?
Thanks!
youssef1
Cumulonimbus
Jun 10, 2018Hi,
You can use an Irule:
when HTTP_REQUEST {
if {[string tolower [HTTP::method]] contains "YOUR METHOD"}{
log local0. "Forbidden HTTP method ([HTTP::method]) attempted by [IP::client_addr]"
reject
}
}
For example, to reject requests containing the TRACE method, enter the following text:
when HTTP_REQUEST {
if {[string tolower [HTTP::method]] contains "trace"}{
log local0. "Forbidden HTTP method ([HTTP::method]) attempted by [IP::client_addr]"
reject
}
}
In your case you can autorize only wanted method !!!
For more information:
https://support.f5.com/csp/article/K85840901
regards
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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