A non-transitory, computer-readable medium comprising instructions that, when executed by a processor, causes the processor to carry out stages for dynamically applying information rights management (IRM) policies to documents, the stages comprising:
- receiving, at a proxy server, a request from a user to retrieve a document stored on a document repository;
- analyzing content information from the document, wherein the content information includes text or images contained within the document;
- determining a relationship between the user and a creator of the document, including determining whether the user and the creator both belong to a first organizational group;
- and
- dynamically applying an IRM policy to the document based on the analysis and determined relationship, including locating a server that provides an enforcement rule by using information in a header of the document;
- and
- sending the document with applied IRM policy to the user.