Forum Discussion
Karthik_Krishn1
Cirrostratus
Oct 15, 2013Allow access to URL from internet based on URI
Hello ,
I am trying to develop an irule whereby access to a specific URL is allowed only when a specific URL is presented .The logic is as below :
Application 202(CAC) alone is accessible o...
Kevin_Stewart
Employee
Oct 16, 2013Okay, this isn't as dynamic as a data group, but should provide what you need:
when HTTP_REQUEST {
if { not ( [class match [IP::client_addr] equals private_net] ) } {
process URI filter for external users
switch -glob [string tolower [HTTP::uri]] {
"/i/*" -
"/smapps/f?p=202" -
"/smapps/f?p=cac" { return }
"/smapps/f?p*" { reject }
"/smapps/*" { return }
default { reject }
}
} else {
process URI filter for internal users
switch -glob [string tolower [HTTP::uri]] {
"/smapps/f?p=4550" { reject }
"/smapps/*" { return }
default { reject }
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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