skip to Main Content

I’m trying to remove public access to PHPMyAdmin on my Google Cloud VM. Has anyone done this so that you can access it privately?

It would be awesome if you could only see the /phpmyadmin path when you were authenticated as a user on the WordPress installation there but I’m not sure where to start.

2

Answers


  1. First of all, I don’t use PHPMyAdmin

    But there are some general options to filter out certain paths:
    1. If you server is accessible via GCP LB, define a host rule to redirect /phpmyadmin to other routes
    2. PHPMyAdmin should have some whitelisting function, you can Google it
    3. Put a proxy server e.g. Nginx in front of PHP and do routing

    Login or Signup to reply.
  2. While thinking how to reply to you I’ve found an already answered question on AskUbuntu that is written well

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search