It is currently Thu Jan 21, 2021 1:18 am
All times are UTC + 8 hours

Add some basic security for phpmyadmin

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

Add some basic security for phpmyadmin

Postby jeromeb » Mon Sep 02, 2013 1:02 am

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
-----------------------------------------
jeromeb
 
Posts: 17
Joined: Sun Sep 01, 2013 8:48 pm
Location: Paris / France

Re: Add some basic security for phpmyadmin

Postby Kerry » Tue Sep 03, 2013 1:06 pm

this is great! thanks for sharing!!!
Kerry
 
Posts: 456
Joined: Wed Jul 03, 2013 9:35 pm

Return to Web Hosting

  • You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum
  • Who is online

    Users browsing this forum: No registered users and 1 guest

cron