Apache: Block Directory Access
To allow access by only the LAN connected systems create additional Apache configuration file.
Package Configuration
The default phpMyAdmin Apache configuration looks like this.
Giving access to the directory containing the PHP application.
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
#
# See the file itself for it.
#
</Directory>
Additional Configuration
Create an additional file phpmyadmin-bocking.conf in directory /etc/apache2/conf-enabled .