Forum Discussion
Glenn_32883
Nimbostratus
Jun 10, 2010irule to restrict access by ip
Hi everyone,
My irule experience is basically setting up some redirects. Now I am trying to set up a whitelist of IPs to restrict who can access a certain sub folder of our site. The rest ...
Glenn_32883
Nimbostratus
Jun 14, 2010Thanks for the input everyone! Just posting back what worked for me for future reference.
Wound up flipping the logic where if not on the list close, instead of redirecting if on the list. I changed to an underscore as well.
when HTTP_REQUEST {
if { ([HTTP::uri] starts_with "/epp") and ! ([matchclass [IP::remote_addr] equals $::epp_test]) } {
HTTP::close
}
}
Many thanks!
Glenn
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