Data protection method and system for social network

The invention provides a data protection method and system for a social network. The method includes the steps of screening uplink HTTP request messages including user operations from data streams, analyzing the uplink HTTP request messages and obtaining elements corresponding to the user operations, detecting whether elements matched with the elements corresponding to the user operations exist in elements stored currently and corresponding to user operations to be protected, and if the answer is yes, refusing to execute the user operations, wherein the elements include identifications of an operation main body, identifications of operation types and identifications and content of operation objects, the user operations are carried out by the operation main body on the operation objects and are of the type of the operation types. By means of the method and system, precise and effective data protection can be achieved on the social network.