Re: php, mysql security question

From: Date: Wed, 31 Mar 2004 12:27:42 +0000
Subject: Re: php, mysql security question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33719@lists.php.net to get a copy of this message
JeRRy wrote:
You know how there is a way to enable/disable hot linking to your images via CPanel to allow/disallow people to link to your images from an external site? Well is there a way to allow/disable external sites connecting to a mysql via PHP? So is there a way to allow only localhost access to the db's somehow? I wonder this to add extra security to my db's and not only that to educate others on this list if it is possible or not.
Yes, it's possible and recommended. This would be better asked on a MySQL forum or email list, though. You give permission for each user to connect from a specific host when you GRANT them permissions. Read the MySQL manual about the GRANT command. ---John Holmes...

« previous php.db (#33719) next »