in reply to Protecting your DBI user/password in scripts?
If you're really paranoid, don't connect to the database from logic on the web server tier. Instead, connect from middleware that lives on a separate box. Admitedly, this isn't for everyone.
If you're stuck with a one- or two-tier configuration, you have a couple of options. The simple one is to have your script read a username/password from a path that isn't visible to the web server. This works until your box gets hacked.
Another option, available if you're running a two-tier configuration and have some control over the database box, is to user DBI::Proxy and DBD::ProxyServer to the actual database connect to the web server box.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Protecting your DBI user/password in scripts?
by Aristotle (Chancellor) on Sep 12, 2002 at 20:34 UTC |