there are quite some examples with a quick search
https://devcentral.f5.com/s/question/0D51T00006i7iJf/block-activesync-on-virtual-server
https://devcentral.f5.com/s/question/0D51T00006i7NzlSAE/how-to-block-a-specific-url
https://devcentral.f5.com/s/question/0D51T00006i7Y8w/blocking-a-specific-url-on-a-specific-vip-with-irule
https://support.f5.com/csp/article/K74012450
in your case you dont even have to do something special for inside or outside as inside users dont reach the big-ip
give it a try and / or post what you believe will work.