Simply implement the method that restricts phpmyadmin access to ip

  • 2020-05-30 19:44:37
  • OfStack

Update: config. inc. php

Add in at line 1

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

ip can be set to ip on your own computer. If it is an Intranet, it is recommended to directly set the ip address to replace the ip address segment. This prevents other users from accessing the Intranet. If it is a public network ip limit, you can use it directly.

It's just a simple qualification, it's not a big requirement it's just a temporary qualification, you can do it this way. Temporary restrictions on user access.

Related articles: