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...
The_Bhattman
Nimbostratus
Sep 15, 2010Hi Fahmy,
If I understand your question you want to basically only allow requests to make it through if they use domain name but deny those that use the IP addresses.
This code might help. Assuming that you created a white list datagroup.
when HTTP_REQUEST {
if hosts header does not match the whitelist then drop the request
if { ![matchclass [HTTP::header "Host"] eq $::hostswhitelist] } {
drop
}
}
I hope this helps
Bhattman
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