silver
Jul 08, 2010Nimbostratus
Listed URI
Hi,
I need to frame a irule which need to allow only the listed uri, rest needs to be blocked. For some of the uri, specific ip's need to get the access.
ex:
http://www...
Hi Bhatman,
Provided link show only the ip restriction to the specific URI in the datagroup. How about the restriction of URI.
Need to have the single irule achieving both the requirement.
Thanks
In the example to which he linked, you're determining (in the CLIENT_ACCEPTED) event whether the IP of the client is one that allows him to access all resources or if he can only access certain ones. After that determination has been made, you're checking the URI in the HTTP_REQUESTED event. So, your sequence would be like this: 1. User hits your site and their address isn't in the datagroup. 2. Since their address wasn't in the address datagroup, we're checking the URI datagroup to see whether they have access to the URI they requested.