Forum Discussion
JWhitesPro_1928
Dec 20, 2017Cirrostratus
Useful 13.1 addition to ASM/AFM
In 13.1 it seems we have more signature/ips like functionality but one thing I think the system really lacks is more actions that can be taken on hits for those signatures.
IE:
If someone t...
Dec 21, 2017
If you want to block across all sites you could add the IP to a tables blacklist:
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::uri]] starts_with admin_uris] } {
User tried to access blocked uri, adding to black list and dropping it
This example will block the user for 10 seconds
table add blacklist_[IP::client_addr] 1 10
drop
} elseif { [table lookup -notouch blacklist_[IP::client_addr]] != "" } {
Previously blocked address, dropping.
-notouch means that the timeout won't be reset
drop
}
}
This is just a simple example. You could also add logic on how many attempts, increase the timeout if the user keeps it up etc. Tables are global so just add the rule to any virtual server you want to enforce the blacklist on.
/Patrik
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