Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > .htaccess and perl cgi

Thread Tools

.htaccess and perl cgi

Posts: n/a
I am trying to create a generic interface that will manage various
..htaccess protected directories. In the ideal world, the .htaccess
would trigger a cgi script that would take login information and store
it to a file, or block access all together.

For example,
anytime someone logs in, the .htaccess file should direct the user
name and IP address to be stored in a log file through this cgi. A
cron could be scheduled to determine if the same user name accesses
the site frequently throughout the day from several IP addresses, thus
signifying abuse.

Now, I know I can put a cgi script in the protected directory and have
it be the default page for that directory, but I am looking for
something a bit more elegant. I would actually like the script to be
in the background and not have it matter what the index.htm file (or
whatever) is doing.

Ultimatley, this question may be more geared to Apache (searched there
also), but I am looking to the Perl community for guidance since
someone out there has surely decided they needed a robust way to log
..htaccess entries.

In my ideal dream world, the .htaccess file would be able to call a
cgi script. Is this possible? If so, how?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommendation for a small web framework like Perl's CGI::Applicationto run as CGI? excord80 Python 17 01-29-2009 06:02 PM
what's wrong calling a Perl/CGI script in Perl/CGI script under Tomcat server? kath Perl Misc 4 04-09-2007 09:21 PM
Python-cgi or Perl-cgi script doubt praba kar Python 1 07-30-2005 08:25 AM
perl/cgi exploit with bracketed module names passed in as CGI param shumsta Perl Misc 1 07-21-2005 11:30 PM
Re: CGI Perl "use CGI" statement fail Jürgen Exner Perl 0 07-31-2003 02:00 PM