For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > May 2005 > Re: [PHP-DB] Connection Question!









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Connection Question!
Firan Corneliu

2005-05-17, 8:56 am

If you mean database access that is simple, just create
a user that has access only from localhost (and of course
remove the others).

For mysql just do the query :
"GRANT ALL PRIVILEGES ON your_database.* to 'user'@'localhost'
identified by 'password'".

If you mean http access then you can configure a firewall depending
on the os you have or work with apache's .htaccess


On Tue, 2005-05-17 at 16:32 +1000, JeRRy wrote:
> Hi,
>
> Okay lets say I own www.fred.com (which I don't but still) and www.getpaid2reademails.com (so I own two domain, lucky me!)
>
> Now I want to connect from getpaid to fred... Okay I have done this and achieved this but is it possible to reject this operation and deny connections outside of localhost?
>
> Also if this is possible what IP is checked, the actual servers as localhost or the user (different IP)?
>
> I hope you understand what I mean, just wondering on stricter security.
>
> J
>
>
>
> ---------------------------------
> Find local movie times and trailers on Yahoo! Movies.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com