![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Database Database problems or need to ask a question? maybe something to do with sql injections or a database software question. Database topics cover MySQL, PostgreSQL, Oracle, SQL Server or anything else related to databases. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hi I have a mysql database instance running on a box that is behind a fire-wall. I want to disable some users access to the database when they are logging in from outside the firewall (internet). I know that it is possible to deny access to static IP addresses at the firewall. However, some of my users can have dynamic IP's (eg. modem). Is there anyway to determine the IP address of the user and deny access if it is not an intranet IP. Thanks for your help. | |||
| | #2 | ||
| soup_or_power@yahoo.com wrote: > anyway to determine the IP address of the user and deny access if it is > not an intranet IP. I would use the GRANT statement to give these users access only when connecting from the intranet. For example: GRANT ALL PRIVILEGES ON databasename.* TO 'username'@'192.168.0.%' IDENTIFIED BY 'password'; Assuming that your intranet subnet is on 192.168.0, from the perspective of the MySQL server host. You should REVOKE any other privileges the user has before doing this, or else both sets of privileges will be in effect and the more permissive one will allow them in. Regards, Bill K. | |||
| Featured Websites | ||||
|
![]() |
| Tags: access, remote |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to setup remote access to MySQL? | yashgt@gmail.com | Database | 1 | 07-01-2007 6:42 PM |
| HELP: 2 ATTEMPT: Remote search engine restricted access to web server request only | barry bar-nathan | PHP | 0 | 07-01-2007 4:14 PM |
| Remote search engine restricted access to web server request only | barry bar-nathan | PHP | 0 | 07-01-2007 3:58 PM |
| Access Programmer / Access Developer Can help Automate your BIZ | sos | Building An Internet Business | 0 | 05-29-2007 3:10 AM |
| Featured Websites | ||||
|