in reply to How to prevent database from listing/viewing?

in extreme, do something like this:

chmod 600 database.txt (owner can read and write, the others can do nothing)

if you try to read http://www.yoursite/cgi-bin/database.txt
you will get a Forbidden alert and a log in your logs file

  • Comment on Re: How to prevent database from listing/viewing?

Replies are listed 'Best First'.
Re^2: How to prevent database from listing/viewing?
by santander (Acolyte) on Dec 03, 2004 at 18:11 UTC
    Yes, this help: setting the 600 CHMOD to databse.txt O.K.
    So one problem remains only: prevent from running the script with no requests: browser http://webhost/cgi-bin/csvsearch.pl
      Does someone have some ideas?