Forum Discussion
Possible to build data group from remote web page when client access specific uri?
All,
the goal I have is to write an IP filter for a web site (using an irule), however the list of IP's is going to be updated regularly (several times a day), and ideally should be pulled down from a web page running on a server local to the F5 LTM. It needs to be done based on the URI, and if the client IP is not matched to the list as specific HTTP soap response it returned to the user.
I have seen the IP filtering irules that are available and believe I can rework one easily enough (famous last words!) to do a http respond rather than reject etc, however where I am stumped and looking for guidance is if it is possible for the irule to parse a remote web page as a data group ?
thanks in advance
1 Reply
- Kevin_Stewart
Employee
If you're running v11 you can absolutely do this (quite easily) with sideband calls. If you're running pre-v11, you can still do it with the HTTP::retry and HTTP::request commands, but this method is a little complex.
I would also add that calling out to a remote web server adds a bit of latency. Not such a big deal if you're only doing it once per client session, but it can be significant if you need it per-request. An alternative might be to have an external monitor that regularly updates a data group via cURL requests to the web server.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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