360 General PHP Protection Code (using operational details) _php tips

Source: Internet
Author: User

360 Publish the general PHP Protection Code, in fact, initially to help phpcms to protect the use of security, it appears to be able to join any of the loopholes in the site, take phpcmsv9 problems, the solution is as follows, other sites and so on!

1. Upload 360_safe3.php to the directory of the files to be included

2. In the page to add protection, there are two ways, according to the situation two choose one:

a). Add code to the page you want to protect
Require_once (' 360_safe3.php ');
You can do the page to prevent injection, cross station
If you want to stop the whole station, it is in a common file in the website, such as the database link file config.inc.php!
Add require_once (' 360_safe3.php ') to invoke this code

Common PHP System Add files
Phpcms V9 \phpcms\base.php
PHPWIND8.7 \data\sql_config.php
DEDECMS5.7 \data\common.inc.php
DiscuzX2 \config\config_global.php
Wordpress \wp-config.php
Metinfo \include\head.php

b). Code at the top of each file
Found in php.ini:
Automatically add files before or after any PHP document.
Auto_prepend_file = 360_safe3.php path;
-------------------------------------

360_safe3.php source files are as follows, we can refer to the following. Click to download

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.