469,290 Members | 1,723 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

.htaccess and perl cgi

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?

Jul 19 '05 #1
0 3509

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by yawnmoth | last post: by
8 posts views Thread by Joshua Beall | last post: by
4 posts views Thread by Ivo | last post: by
7 posts views Thread by John | last post: by
reply views Thread by Jack Hambabo | last post: by
9 posts views Thread by invertigo | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.