If you are running your own web
server , here's what
you should do:
If your OS is NT/Win2000, enable NTFS "Read" and
"Write" for reason listed above. This is not needed for
Win95/98.
Then, if are running Microsoft Internet Information Server,
Microsoft Peer Web Service (which comes with NT4.0 CD), Microsoft Personal Web
Server etc., disable "read" access on cgi-bin and its subdirectories.
Therefore what you (or your web server administrator) need to do is to launch
the web server administration manager, look at the access setting of the
cgi-bin directory of the web server, then set the access setting to enable
"execute", enable "scripts", disable "read" (you'll need to check the
checkboxes "execute" "scripts" to enable them, and uncheck "read" to disable
it).
For other Unix-styled security configuration web servers, such as
Sambar Web Server (a free/$75 web server that is very feature-rich and
relatively easy to use), Apache (free, its Windows version is hard to use) or
O'Reilly's WebSite Pro Server, etc., here is what I found/remembered that
you need to do: For Apache, in their cgi-bin directory, your DB file is
usually safe (because by default apache take any requests for file in the
cgi-bin directory as a command to execute that file. Because of this,
when you try to download the DB text or html file, the server gives you an
error as those DB files cannot be executed) yet it is still advisable that you
disable "read" access on cgi-bin and its subdirectories (see below for
Sambar). For WebSite Pro, you need to set order "allow, deny" and "deny all"
or allow only a selected group of users or groups to access the directory
(same method applies to Apache too). For Sambar server, you want to put a
.htaccess file under cgi-bin and its subdirectories. In that file, you specify
the name of a zone, then restriction. For example, that .htaccess file can
look like this after you created user "test":
AuthName "Authorized Only"
require user test
Apache can
use .htaccess file to disable access to its directories too.