Forum Discussion
idealo_security
Mar 15, 2017Altostratus
iRule to block paths is not working properly after decoding HTTP::uri
Hi folks,
I was trying to generate an iRule which should take the URL, decode it, normalize the path portion and save it for later use in the following iRules.
But unfortunately, I wasn't able to pro...
- Mar 17, 2017
Solution is found: The error was in not writing the basename back to the
variable:HTTP:path
when HTTP_REQUEST priority 400 { this part is taken from F5s DevCentral set tmpUri [HTTP::uri] set uri [URI::decode $tmpUri] while { $uri ne $tmpUri } { set tmpUri $uri set uri [URI::decode $tmpUri] } set tmpPath "[URI::path $uri][URI::basename $uri]" HTTP::path $tmpPath }
Vijay_E
Mar 15, 2017Cirrus
Have you tried using log local0. statement within the iRule in order to check what the incoming URI and the decoded version look like ? This might help to understand where the error exists.
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