Forum Discussion
How to create iRule to grant additional access to a specific client
If I may add, authentication, or some form of identity validation is required for this to work. If you validate the request as coming from a particular vendor, either through an authenticated session, or perhaps a known IP range, then the iRule would be pretty straight forward. Example:
when HTTP_REQUEST {
if { ( [class match [string tolower [HTTP::uri]] starts_with my_uri_dg] ) and ( $vendor equals "my_special_vendor" ) } {
return
} else {
drop
or
HTTP::respond 200 content "...no access..."
}
}
where "my_uri_dg" is a string-based data group with the URIs you want to protect. Example:
/customerinformationservice/v1/customerinformationservice.svc := 1
/productservice/v1/productservice.svc := 1
You could optionally define which vendors had access to specific URIs. Ultimately though,
and ( $vendor equals "my_special_vendor" )
you have to figure out how to differentiate one HTTP request from another.
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