1. A method for processing electronic documents comprising: obtaining an electronic document being sent over a network toward a destination; analyzing text content of the electronic documents to identify whether the electronic document matches any of a plurality of predefined document templates, wherein the electronic document conforms to a structure of at least one of the plurality of predefined document templates, and wherein the analyzing comprises executing at least one machine learning algorithm, the at least one machine learning algorithm trained using at least one sample electronic document having a predefined template; obtaining a document loss prevention (DLP) policy based on the at least one predefined document template associated with the electronic document, wherein the DLP policy defines at least one rule to block sending of at least one of the electronic documents if the at least one of the electronic documents matches any of the plurality of predefined document templates; and selectively allowing the electronic document to continue toward the destination based on the DLP policy.
1. A method for processing electronic documents comprising: obtaining an electronic document being sent over a network toward a destination; analyzing text content of the electronic documents to identify whether the electronic document matches any of a plurality of predefined document templates, wherein the electronic document conforms to a structure of at least one of the plurality of predefined document templates, and wherein the analyzing comprises executing at least one machine learning algorithm, the at least one machine learning algorithm trained using at least one sample electronic document having a predefined template; obtaining a document loss prevention (DLP) policy based on the at least one predefined document template associated with the electronic document, wherein the DLP policy defines at least one rule to block sending of at least one of the electronic documents if the at least one of the electronic documents matches any of the plurality of predefined document templates; and selectively allowing the electronic document to continue toward the destination based on the DLP policy. 5. The method of claim 1 , wherein the plurality of predefined document templates were generated based on one or more predefined rules.