Forum Discussion
JamesS_40157
Nimbostratus
Jan 03, 2012Blocking a single IP in ASM - send to the blocking page
Hi all, I can't for the life of me work out what I would have thought would be a simple thing to do in ASM. What we would like to do is blacklist a single IP address (or potent...
JamesS_40157
Nimbostratus
Jan 03, 2012A slightly revised version, would this be ok? (more specific to webscraping now)
when ASM_REQUEST_VIOLATION {
set x [ASM::violation_data]
if {([lindex $x 0] contains "VIOLATION_WEB_SCRAPING_DETECTED")} {
if { ! [matchclass [IP::remote_addr] equals /Common/asmblockips] } {
ASM::disable
}
}
}
However i have just read the asm::enable and asm::disable functions only work within HTTP_CLASS_SELECTED, if this is the case, i guess i cant be specific down to the attack type?
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