Forum Discussion
Sumit7595_36869
Nimbostratus
8 years agoNeed help to write an iRule
Hi All,
I need help to implement a change in my existing iRule. Main site should be accessible to intended IPs but two pages of this site (example: and should be accessible to everyone)
...
Samir_Jha_52506
Noctilucent
8 years agoBased on above condition, tried to frame irule. Validate it & confirm.
when HTTP_REQUEST priority 70 {
if { ( [string tolower [HTTP::uri]] starts_with "/sumit" ) or ( [string tolower [HTTP::uri]] starts_with "/dubey" ) } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
elseif { [matchclass [IP::client_addr] equals ADMIN-ALLLOWED-IP-LIST] } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
else {
HTTP::respond 200 content {
Apology Page
We are sorry. Permission denied, Connect to Application Admin Team.
}
}
}
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
