I'm planning on putting adminer to the production server. The production server has MySQL installation only available for localhost, and passwords for users.
Normally, besides username and password authentication, I'd love to configure a whitelist of IPs that are allowed to access this script. If the IP is not in the list, I just return 404. I'm wondering what's the easiest way to do this with adminer.
The easiest way is to create a customization, namely with the login() method and return false if remote IP is not in the whitelist.
Another approach is to create a plugin for this. You can get inspiration in the login-servers plugin.