Forum Discussion
OmarKhan_249581
Nimbostratus
Jun 28, 2018Whitelisting only specified file extensions on ASM
Hi - I have a request for whitelist only the below approved file extensions;
Zip (zip)
Word Docs (doc, docx)
PDF (PDF)
Excel (xls, xlsx)
Outlook message files (msg)
JPEG (jpeg / jpg)
Png (png)
B...
youssef1
Cumulonimbus
Jun 28, 2018Hi Omar,
You can use an Irule for that if you want:
when HTTP_REQUEST {
set path [HTTP::path]
switch -glob $path {
"*.pdf" -
"*.docx" -
"*.doc" -
"*.xlsx" {
ASM::disable
log local0. "ASM was disable for following path: $path"
}
default {
nothing
}
}
}
Just one question, did you see file extension in the path? if not we have to do otherwise...
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
