Forum Discussion
ryan_hamdi
Nimbostratus
Feb 06, 2024How to create allowed/ disallowed URL in F5 XC
How to create allowed/ disallowed URL in F5 XC? For example, user is not allowed to access URLs containing "git"
- Feb 06, 2024
Hi ryan_hamdi You can create a service policy for that. Security->Service Policies->Service Policies->Add Service Policy. I'm not sure if you want to block git as part of the FQDN being requested, or as part of the HTTP path, but either way, that's configurable in the service policy.
MichaelatF5 wrote an article on some common iRules functionality that you can convert to XC that might be helpful.
MichaelatF5
Employee
Feb 06, 2024The easiest way would be to use Service Policy as Jason highlights, or use a route and do a regex on .git and give a direct response or redirect.
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