Forum Discussion
gimlie_382872
Nimbostratus
Apr 04, 2019Can we read DataGroup form external file via iRule
Hi expert,
I'have internal server and provide url list. i would like to use ltm block access to url if match in datagroup. I create cronjob and shell script to download url form internal server. Bu...
youssef1
Cumulonimbus
Apr 04, 2019Hi,
So first of create your DG "dg-uri-restriction":
- type string
- string: /uri
- value: not needed in your case.
Then create your irule, it's simple:
when HTTP_REQUEST {
set userip [HTTP::uri]
if { [class match $userip equals dg-uri-restriction] } {
HTTP::respond 403 content "Forbidden" "Content-Type" "text/html" "Connection" "Close"
return
you can also use reject...
}
}
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
