DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Bill Guest

    Securing MySQL password on ISP Server


    I would like to secure the password for my website database by putting the
    username and password in a small file containing only the DBI connect
    statements that specify the userid and password ( for the db not the
    account ). So far I have the security afforded by account login access but
    I would like to further protect the database by hiding the password file
    or
    making it unavailable to intruders while still having the password useable

    by the website's .cgi files. Can anyone suggest a way to do this.
    Thanks, Bill

  2. #2
    Nikolay Stanchenko Guest

    Re: Securing MySQL password on ISP Server


    "Bill" <cyberdad@earthlink.com> wrote:
    >
    >I would like to secure the password for my website database by putting the
    >username and password in a small file containing only the DBI connect
    >statements that specify the userid and password ( for the db not the
    >account ). So far I have the security afforded by account login access

    but
    >I would like to further protect the database by hiding the password file
    >or
    >making it unavailable to intruders while still having the password useable
    >
    >by the website's .cgi files. Can anyone suggest a way to do this.
    >Thanks, Bill


    Hello, Bill!
    You can develope simple application server that performs only subset of
    operation with database. For example if you want to insert some messages
    to table you can develope special cgi-script on special web-server (in same
    security area as MySQL-server - for ex. in DMZ) which will insert some data
    to tables.
    Usernames and passwords (DBI) must be located only on your separated server.

    When you recieve authentication string from user (in HTTP header) you
    can redirect it to your special server via local interface. CGI-script on
    secured web-server checks userid/password, translates it to appropriate
    DBI connect string and performs operation.



    Nikolay Stanchenko,
    Internet Security Brainbench MVP










Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links