2. Strengthen the legal system related to the media. Since the media era, law is the most effective means to regulate online public opinion. At present, we should strengthen the construction of legal system from two aspects: legislation, popularization of law and law enforcement, and purify cyberspace with the network of rule of law. (1) The legislature should improve the laws and regulations related to the media. Establish and improve the legal system related to the media by combining China's national conditions and foreign successful experiences. On the one hand, it is necessary to effectively protect citizens' right to know, participate, express and supervise, clearly distinguish private and non-private information types, safeguard freedom of online speech, and protect online privacy according to law. On the other hand, citizens should be encouraged to express their demands rationally, and those who endanger national security, social public interests and personal rights and interests should be investigated for legal responsibility according to law. At the same time, it is necessary to reasonably determine the responsibilities and regulatory obligations of online media, assist relevant departments to crack down on illegal acts according to law, and strengthen their sense of social responsibility. (2) Strengthen the popularization of law and cultivate the awareness of the rule of law among netizens. Do a good job in the publicity and education of laws and regulations in time, form a good atmosphere of consciously learning, obeying the law and using in the network society, improve people's network legal quality, and build a civilized green grid. (3) Strictly enforce the law, strengthen law enforcement supervision and improve the quality of law enforcement personnel. In accordance with the law, we will crack down on irresponsible behaviors such as malicious manufacturing and spreading online rumors and malicious attacks on others on the Internet. At the same time, strengthen the supervision of network law enforcement and law enforcement personnel, and continue to study and train law enforcement personnel to enhance the pertinence and effectiveness of the work.