Add some basic security for phpmyadmin

Web hosting, MySQL, PHP and all that good stuff.

Moderator: Lillian.W@AST

Post Reply
jeromeb
Posts: 17
youtube meble na wymiar Warszawa
Joined: Sun Sep 01, 2013 8:48 pm
Location: Paris / France

Add some basic security for phpmyadmin

Post by jeromeb »

Hi,

If you don't want your phpmyadmin access by everyone (if you enable web and phpmyadmin on basic configuration)
You could do that from ssh user root :

cat > /volume1/Web/phpmyadmin/.htaccess
Order Deny,Allow
Allow from 127.0.0.0/24
Allow from <YOUR IP> <YOUR SUBNET/MASK>
Deny from all

and CTRL C for end and write file

You will be able to access phpmyadmin only from IP on allowed list.

Regards,
-----------------------------------------
AS-604t user
-----------------------------------------
Kerry
Posts: 457
Joined: Wed Jul 03, 2013 9:35 pm

Re: Add some basic security for phpmyadmin

Post by Kerry »

this is great! thanks for sharing!!!
Post Reply

Return to “Web Hosting”