Forum Discussion
mguned_60772
Nimbostratus
Sep 09, 2011Block URI from Internet
Hello,
Is it possible to block a specific URI from the Internet? Example, if http://abc.com is Internet facing... would it be possible to block only http://abc.com/xyz and allow any other URI? The other question is ... would it then also be possible to allow http://abc.com/xyz to our Internal customers?
Thanks in advance for any information... it is much appreciated!
Best Regards,
Eddie
5 Replies
Sort By
- Michael_Yates
Nimbostratus
Hi mguned,when HTTP_REQUEST { if { [HTTP::uri] starts_with "/xyz" } { HTTP::redirect "http://[getfield [HTTP::host] ":" 1]/" } }
- Michael_Yates
Nimbostratus
The second part of your question is a little more tricky. How are you going to distinguish between Internal and External Users? - mguned_60772
Nimbostratus
Thanks for the info! Maybe I can just block the URI from the Internet as suggested above and then create an Internal DNS entry that would point the Inernal user directly to the Internal VIP? Then could we add a single subnet to the list of allowed users? - mguned_60772
Nimbostratus
Regarding the second part... - Michael_Yates
Nimbostratus
You could do that.when HTTP_REQUEST { if { ([HTTP::uri] starts_with "/xyz") and !([class match [IP::remote_addr] equals AllowedSubnets]) } { HTTP::redirect "http://[getfield [HTTP::host] ":" 1]/" } }
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