Forum Discussion
Sumit7595_36869
Nimbostratus
Aug 01, 2018Need 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)
...
JG
Cumulonimbus
Aug 02, 2018when HTTP_REQUEST priority 50 {
if { [string tolower [HTTP::host]] equals "www.examples.com" } {
if { [HTTP::header value "True-Client-IP"] != "" } {
if { [class match [HTTP::header value "True-Client-IP"] equals Data_GroupList_Name] } {
return
} else {
if { ( [string tolower [HTTP::path]] equals "/sumit" ) or ( [string tolower [HTTP::path]] equals "/dubey" ) } {
return
}
}
}
HTTP::respond 403 content {
Access Denied.
You do not have permission to access this site.
} noserver
event disable all
}
}
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
