Forum Discussion
sys-team_172267
Nimbostratus
Jun 27, 2016ASM disable and log requests
Hello,
After i disabled ASM by iRule (ASM::disable) i still should see requests under "Event Logs-->Application-->Requests?
i build iRule that recognized specific URL path and disabled ASM for t...
Jinshu
Cirrus
Jul 04, 2016Hi Mate,
You can block ASM check in two different ways. Either do it via an Irule or through GUI (LTM policy).
If you prefer Irule, try below one.
when HTTP_CLASS_SELECTED {
ASM::enable
if { [HTTP::uri] starts_with "/uri" } {
ASM::disable
}
}
Your irule is working but you have allowed ASM to create a Violation and thats why it is notofying you as an event.
If you prefer LTM policy, remove the Irule and configure policy as mentioned below.
Local Traffic > Policies > asm_l7_policy_whatever.website.com > under Rules click on Add, give it a name, like policy_whitelist, operand: http-uri (leave rest of fields default) > condition: choose equals/contains/etc, value = your URI, click add, then click the Add further down where operand/event/etc is located.
In the Actions area, target > asm, action > disable. Click Add where target/event/etc are. and Finished.
Then once back at the main policy page, do a re-order and move the policy_whitelist you created above default, so it will disable on the URI string prior to hitting the default ASM enable.. once you done this once or twice, pretty simple and can be used a lot.
Hope this helps.
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