Home > Database > phpMyAdmin > How to enter phpmyadmin using IP

How to enter phpmyadmin using IP

Release: 2019-12-24 10:02:11
Original
2749 people have browsed it

How to enter phpmyadmin using IP

If you want to restrict only a specific IP address range to access phpmyadmin, you can modify the configuration file config.inc.php and set:

Add in the first line :

$ip_prefix = '192.168.1.';
if(substr($_SERVER['REMOTE_ADDR'], 0, strlen($ip_prefix)) != $ip_prefix)die('illegal access error');
Copy after login

ip can be set to the IP of your own computer. If it is an intranet, it is recommended to directly set it to your own IP address instead of the IP address segment. This will prevent other users from accessing the internal network. If it is a public network IP restriction, just use it directly.

Recommended learning: phpmyadmin tutorial

The above is the detailed content of How to enter phpmyadmin using IP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template