Reject Attachments in F5

Hello Experts,

I Just wanted to Know if there is any provision available for Blocking attachments in F5. Any IRules which we can maintain? we have a requirement to block any attachments coming from outside the office network and allow attachments only inside the Network.

Thanks in Advance