Forum Discussion
Apr 12, 2011
Can you restrict a file type to a URL in ASM?
Hi,
Is there a way without an iRule to restrict certain file types to certain URLs in ASM v 10.2.0 HF1?
I want to restrict requests for static content such as css, png, jpg, pdf to the /images/ URI.
I had a look at flows (which I hardly ever use) but this doesn't seem to be possible there either.
Thanks
- hoolioCirrostratusHi Wire,
- hoolioCirrostratusActually, the regex for 1 will block everything else that's not in images. I need to work on that a bit :). The concept is that you want to build a regex which matches a string starting with /images/ that does not end with a static filetype. Once you figure that out, you can create an attack signature which is applied to URIs. I'll try to test this more to get it working. Else, if you figure it out, please reply back.
- Tom_Spector_50Historic F5 AccountAnother (untested) option is to create wildcard objects for these types and restrict based on the illegal object violation.
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