phpMyAdmin .htaccess generate restricting ip

Acceleratic

Verified User
Joined
May 25, 2009
Messages
55
Maybe already possible, couldn't find it so let me know :)

Id like to restrict /var/www/phpmyadmin for all hosting accounts on ip based. I prefer doing it by the API. It's already possible to restrict password based on directories, maybe it is a nice feature to have it also on phpMyadmin!

Possible (workable) solutions/workarounds are welcome, shoot on the idea if you'd like!

The following proces is what i want to reach for:
1. User logs in into personal CMS environment
2. User adds own ip to phpMyAdmin restriction list
3. User can now login into phpMyadmin (still needs his user/pass for database access)
 
Last edited:
You might want to create .htaccess file in parent directory (/var/www/html) with your directives for directory /var/www/html/phpmyadmin/

Or you might want to add directives into Apache configs.
 
You might want to create .htaccess file in parent directory (/var/www/html) with your directives for directory /var/www/html/phpmyadmin/

Or you might want to add directives into Apache configs.

Yes that sounds good, that way a phpMyadmin update won't mix it up (and a custom config is not needed), let's see who can add this, own custom thingy or provided security from DirectAdmin itself!

I think, DirectAdmin support: correct me if i'am wrong, it should be fairly easy for DirectAdmin todo because they already generate it for directories (protect directory option)
 
Back
Top