Re: A CGI Question.

by terry morse <tmorse(at)terrymorse.com>

 Date:  Wed, 12 Apr 2000 08:17:32 -0700
 To:  SDJThorin <sdjthorin(at)geocities.com>
 Cc:  hwg-techniques(at)hwg.org
 References:  geocities
  todo: View Thread, Original
>I'm new to Perl & was wondering how I can block calls to a perl
>script from external servers?
>
>ie:	I only want the script to only be accessible from a
>	specific page in a protected directory.
>

The easiest solution is to tell the web server to deny access. Simply 
put a ".htaccess" file in the protected directory that only allows 
access by local IP addresses. See the following for an example:

<http://www.baremetal.com/gadgets/htaccess/access.html>

-terry

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA