Forum Discussion

ryan_hamdi's avatar
ryan_hamdi
Icon for Nimbostratus rankNimbostratus
Feb 06, 2024
Solved

How 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"

  • 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.

2 Replies

  • The 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.