Forum Discussion
jaskel_40663
Nimbostratus
Apr 29, 2008Block specific URI
I have a need to block a specific uri as well as insert the client IP address into the HTTP header. I have the HTTP header insertion iRule and it works well:
when HTTP_REQUEST {
...
Apr 29, 2008
You can do it in one or two iRules, it really depends on if you want to reuse them in other places. If all this logic is on one virtual, then a single iRule might be easier to maintain. But if you will want to enable/disable one of the two functions then you might want to split them apart.
If you use two iRules, make sure you assign the events the correct priority so that they will be processed in the order you specify. See the priority command in the iRules wiki for more details.
-Joe
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
