Forum Discussion
How to increase the size of upload file size in ASM
- Jun 08, 2015
You can apply the following iRule to your virtual server: The "/upload" is in the path of the file you are uploading. Note that ASM is disable when uploading and malicious files could be uploaded in this particular location without detection...
++++++++++++++++ when HTTP_REQUEST { if {[HTTP::uri] contains "/upload" } { ASM::disable log local0. "ASM disabled." } else { ASM::enable /Common/ log local0. "ASM enabled. Current ASM policy is [ASM::policy]" } } +++++++++++++++++++
Above irule will once again disable ASM altogether for a give IP. if you know the URI for file upload (Depending on the application), you can combine the first and second iRule with (AND), that would be more effective and more secure. The users with certain IPs will have ASM disabled only when they are trying to upload...
Recent Discussions
Related Content
* 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