MySQL

Restrict phpMyAdmin access to only Internal Private IP address

Tulisan ini berguna jika anda hanya ingin phpmyadmin bisa login dari IP Address tertentu. Berikut langkah-langkahnya :

Buka file /etc/phpmyadmin/config.inc.php, tambahkan code berikut dibagian akhir code

$cfg['Servers'][$i]['AllowDeny']['order'] = 'deny,allow';
$cfg['Servers'][$i]['AllowDeny']['rules'] = array(
'deny root from all',
'allow root from localhost',
'allow root from 192.168.1.0/24',
'deny userlain from all',
'allow userlain from localhost',
'allow userlain from 192.168.1.0/24',
);

dari code tersebut bisa kita lihat, bahwa root dan userlain hanya bisa dibuka di localhost dan 192.168.1.0/24.

Sumber:
http://abuhawa.wordpress.com/2009/01/07/restrict-phpmyadmin-access-to-only-internal-private-ip-address/

Advertisements

About Suendri

Owner dan Founder Go Software Media sebelumnya bernama PHPBeGO Foundation

Discussion

No comments yet.

Tinggalkan Komentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow Go Software Media Blog on WordPress.com

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 64 other followers

Archives

%d bloggers like this: