CheckReferer.pm - Check referer or remote host.

Access counter


NAME

CheckReferer.pm - Check referer or remote host.

$Id: CheckReferer.pm,v 1.2 2003/01/03 12:04:10 t_shigetome Exp $


SYNOPSIS


DESCRIPTION

This module use for check CGI referer.

METHOD

CheckReferer( $filename )
Verify referer with permitted URIs. The $filename is filename of parameter file. That parameter file will be parsed with Params.pm.

CheckForbiddenRemote( $filename )
Check forbidden remote hosts. The $filename is filename of parameter file. That parameter file will be parsed with Params.pm.

CheckAcceptRemote( $filename )
Verify with accepted remote hosts. The $filename is filename of parameter file. That parameter file will be parsed with Params.pm.

Parameter file

Parameter file format is following. That `label' is meaningless.

        referer label{
                accepted referer URIs;
                .
                .
        };
        forbidden label{
                forbidden remote host;
                .
                .
        };
        accept label{
                accepted remote host;
                .
                .
        };


SEE ALSO

Params.pm, Timestr.pm


AUTHOR

Tetsuya Shigetome, <t_shigetome@muf.biglobe.ne.jp>.


HISTORY

$Revision: 1.2 $
$Log: CheckReferer.pm,v $ Revision 1.2 2003/01/03 12:04:10 t_shigetome

o No need timestr.pl

o Correct typo

Revision: 1.1
Log: CheckReferer.pm,v Revision 1.1 2002/11/25 11:49:25 t_shigetome

o First release

 CheckReferer.pm - Check referer or remote host.