![]() |
Help on security!
Good day to all,
First my purpose is to share my database connection to someone (other server) but I want to restrict them from modifying it. It is just for viewing data not for modifying. Code:
/*this is my php file that I wanted to share wherein the database connection can be found.Code:
/*this is my php file from another server that will use my conn.php.What I'm afraid of is, What if the client.php did something like: Code:
include 'http://www.mysite.com/conn.php';Thanks!:thumbsup: |
create a new DB user for your client, give them acces to READ your database only.
Then any INSERT UPDATE and DELETE commands will be ignored. In addition, including your config php from a remote site, as it uses "localhost" for the hostname, will not work, you'll need to get the DNS/IP address for your SQL server and use that. In addition some hosts only allow connections to the database from inside their datacenters, so they maynot beable to connect like that. In that case, you'll need to create some sort of gateway. |
I'll try it. Thanks!
|
| All times are GMT +1. The time now is 12:53 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.