Forum Discussion
gh0st_325958
Nimbostratus
Jan 07, 2018Block one type request
Dear All,
I would like to block one attack signature if it contains uniq request type on F5-ASM, without any traffic learning.
For example: I have a request from multi type IPs. I would lik...
Stanislas_Piro2
Cumulonimbus
Jan 08, 2018You can define an ASM user defined violation and raise it if condition meet.
when HTTP_REQUEST {
set reqBlock 0
if { ([string tolower [HTTP::uri]] contains "/example" )
&& ( [IP::addr [IP::client_addr] equals x.x.x.0/24] ) } {
set reqBlock 1
}
}
when ASM_REQUEST_DONE {
if { $reqBlock == 1} {
ASM::raise VIOLATION_FORBIDDEN_URL
}
}
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
