Forum Discussion
MOHIT_125417
Altostratus
Mar 21, 2015Blocking single/Multiple Users to access ??
Hi Experts,
Can I block Single/Multiple user(s) in F5 LTM to access the Website (VIP).
Please guide me how to do this.
giltjr
Nimbostratus
Mar 21, 2015What I have, which I think I got from DevCentral: For the IP addresss you can block based on a specific IP address (/32) or subnets (/12, 24, /whatever)
when RULE_INIT {
set static::AccessDenied "Whatever you want to say when you deny access. "
}
when HTTP_REQUEST {
if { [IP::addr [IP::client_addr]/12 equals 172.16.0.0]
or [IP::addr [IP::client_addr]/24 equals 172.168.1.0]
or [IP::addr [IP::client_addr]/32 equals 1.1.1.1] } {
} else {
HTTP::respond 200 content $static::AccessDenied ; return
}
}
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