Forum Discussion
Chris_Baiocchet
Nimbostratus
Dec 24, 2018iRule to block access to a URI based on IP Address
Hello all,
I have a public-facing website. I want to block access to a specific URI if a requesting client is not within our internal network; redirecting the client to the main page of the site. B...
Dylan_375544
Cirrocumulus
Dec 24, 2018It looks like you have an "if" statement that has "string tolower" in it. That converts all of the uri to lower case. You are then trying to see if it contains "/agenthub/agentPiped" Which has an uppercase "P" in it. That uppercase "P" will not ever be there since you just converted it to all lower case.
Hope that helps!
-Dylan
Chris_Baiocchet
Nimbostratus
Jan 02, 2019It was right there in front of me the whole time. Fixed the case, and iRule is working as expected.
Many thanks, Dylan.
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
