Forum Discussion
Require host header
,
I am not sure if i fully understood you. Do you mean you have multiple virtual servers created using iApp and you want to allow specific hosts using iRule on each vServers. In that case, you need to attach iRule on each Vserver to work it. Or are you looking for the iRule where it should allow multiple hosts and block required ones? Please confirm! If my understanding is incorrect, please correct me!
Thanks
I would prefer only one iRule that matches the hostheader with the associated iapp/virtual server.
So if you take my previous example the iRule fetches the hostheader from the iapp/virtual server and then enters www.test.com as the host variable to be allowed and the IP 10.10.10.10 as the one to be rejected.
So you dont have to manually create one iRule per virtual server. and everything is done dynamically
Best regards
Daniel
Recent Discussions
Related Content
* 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