This thing is actually 4 different mod_perl handler, doing stuff from user authentification, content generation to logging (but see the docs after the code..)
Try this in PHP...
To look at the code in action, you'll need Apache & mod_perl running somewhere. I'll set it up on my devbox later ..
Also note that the mod_perl ASCII art contain all the handler code, while the ASCII-art-underlining does some decoding and unpacking...
PerlModule O
<Location /someplace/>
PerlLogHandler O::j
PerlAuthenHandler O::a
AuthName Locked
AuthType Basic
require valid-user
Sethandler perl-script
PerlHandler O::M
# to change other strings then the default:
# PerlSetVar O "asp|python"
</Location>
<Location /someplace/viewlog>
Sethandler perl-script
PerlHandler O::h
</Location>
O.pm contains 4 different mod_perl handlers:
You can enter any User-ID, but you will need to know the right password. No need to document that here, as you can find it easily in the source code. Wait a minute, why am I writing docs at all ?
In case some new hot technologie comes out, you can set the string of values to be replaced with
PerlSetVar O "some|new|technologies"Please note that there is even some minor context checking taking place: The string won't get replaces if it occures right behind a . (dot, that is), so that e.g. links to guestbook.php still work.
-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mod_perl obfu
by Juerd (Abbot) on Jun 14, 2002 at 22:05 UTC | |
by domm (Chaplain) on Jun 15, 2002 at 08:27 UTC |