Results 1 to 3 of 3

Thread: How to block PhpMyAdmin from public access?

  1. #1
    Join Date
    Aug 2005
    Posts
    15

    How to block PhpMyAdmin from public access?

    Hi,
    PhpMyAdmin is public reachable by default in DirectAdmin. In my opinion this is a potential risk. How can I give access to only some ip addresses? If I google I read you can do it with .htaccess, but than I have to add it to the .htaccess files of all the domains on the server? That can not be the intention...

  2. #2
    Join Date
    Aug 2005
    Posts
    15
    Well, already found a solution: added a .htaccess file to /var/www/html/phpMyAdmin which contains:

    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from xxx.xxx.xxx.xxx

  3. #3
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,010

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •