Forum Discussion
JCMATTOS_41723
Nimbostratus
Jul 09, 2009Restrict access to certain url's by sourceIP?
Hello Forum,
We are trying to utilize some irules to allow only certain users to only access specific url's? Essentially, user A, B, C are trying to access the same virtual server IP, but have...
JCMATTOS_41723
Nimbostratus
Jul 09, 2009I tried applying the irule to the VIP and it does not appear to be working? It just times out. Any ideas?
when HTTP_REQUEST {
Check the requested URI
switch -glob [string tolower [HTTP::path]] {
"/FilterTest*" {
Reset the request if if the source IP is not allowed
if {not ([matchclass [IP::client_addr] equals $::172.24.4.50])}{
reject
}
}
default {
Reset the request
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