Forum Discussion
fahmy_28867
Nimbostratus
Sep 15, 2010irule needed depend on URL not site ip
i have virtual server https load on http pool i need to create irule to accept the header if requet only with URL of the https site and deny any the request if it requested via the website ip .Any on...
hoolio
Cirrostratus
Sep 20, 2010If you just want to drop requests made by IP address, you could do a simple test for any alpha character instead of a specific white list. This would be less specific but more efficient than checking a datagroup for every request.
Here's an untested example:
when HTTP_REQUEST {
if { not [string match {*[a-zA-Z]*} [HTTP::header host]] }{
discard
}
}
Aaron
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