Forum Discussion
Frank_Schuhmach
Altostratus
Aug 06, 2014Brute Force Protection Configuration, Access Validation match sucessfull logons with Location Header, Syntax ?
I have a problem with ASM in the Brute Force Protection Configuration, Access Validation match sucessfull logons. The response of the logon page is only a redirect ( no further content ), here in cas...
Frank_Schuhmach
Altostratus
Aug 14, 2014After several tests it seems that the ASM cannot work with wildcards or regex in the expected validation header name and value field. So i found a solution writing iRule inserting an additional header in the server response. The iRule inserts the header before the ASM inspects the response. ASM now checks Expected validation header name and value field for "Login: succeeded"
when HTTP_REQUEST {
check if request is /shop/login.do , setting is_logon as flag
if { [HTTP::uri] equals "/shop/login.do" } {
set is_logon true
} else { set is_logon false }
}
when HTTP_RESPONSE {
check if response is a Redirect and my flag is_logon set
if { [HTTP::is_redirect] && $is_logon } {
if { [HTTP::header Location] ends_with "/shop/viewLoginForm.do" } {
HTTP::header insert Login failed
}
elseif { [HTTP::header Location] ends_with "/shop/viewUserHome.do" || [HTTP::header Location] ends_with "/shop/initiateOrder.do" } {
HTTP::header insert Login succeeded
}
}
}
- David_MartinMar 21, 2019
Nimbostratus
Great idea!, thanks for sharing
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
