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 10, 2009Thx Aaron, I created a datagroup called users_A_class thru the GUI and still no luck? Am I missing something?
[root@Active] config b class list all
class users_A_class {
type ip
filename none
mode rw
partition Common
host 172.24.4.50
none
none
}
---------------------------------------------
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 $::users_A_class])}{
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
