Home > Article > Backend Development > How to give phpadmin a protection_PHP tutorial
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.