Home  >  Article  >  Backend Development  >  How to give phpadmin a protection_PHP tutorial

How to give phpadmin a protection_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:12:271076browse


How to protect phpadmin
How to protect phpadmin, that is, you need to enter a password to enter phpadmin
----------------------- -------------------------------------

in config.inc In .php:
$cfgServers[$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?

There are three options config http cookie
config: Press the password in the configuration file (that is, the standard method). There is no authentication in this method.
http: Use HTTP authentication.
cookie: Use COOKIE for login authentication.

If you are using IIS+PHP, yes There is no way to use HTTP authentication. This function can only be used on PHP installed using the APACHE+ module.
You can use COOKIE method, the security is also very good.  

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629415.htmlTechArticleHow to give phpadmin a protection How to give phpadmin a protection, that is, you need to enter a password to enter phpadmin ------ -------------------------------------------------- ------- In config.inc.p...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn