Forum Discussion
Dazzla_20011
Aug 15, 2011Nimbostratus
Block users from connecting to a virtual server using ip address
Hi,
What’s the easiest method to block users from connecting to a virtual server using an ip address. We only want to allow connections which match the url.
Thanks
Darren
JRahm
Aug 15, 2011Admin
You can go more generically with a scan command:
when HTTP_REQUEST {
if { [scan [HTTP::host] {%d.%d.%d.%d} 0 0 0 0] == 4 } {
HTTP::respond 200 content "Please use the hostname!"
}
}
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