Apache-Access-Headers

 view release on metacpan or  search on metacpan

Headers.pm  view on Meta::CPAN

=back

=over 3

=item B<REFERER>

If the <id> of a <header> block is 'REFERER', then the referer header is 
checked against an array of referer values specified by <referer> tags
in the <header> block.

For example, using the sample conf file, requests for /images/background.gif
coming from a page on http://www.rulez.com/, or http://www.picnicman.com/
will be accepted.

<referer> tags are treated as regexes ( like <path> tags ). The regex used
is 'm|^$ar|' where $ar is the contents of the <referer> tags.
 
One little trick is to use 'https?://' at the start of the regex
to allow connections from either secure or insecure pages.

B<Note:> If the referer is not matched, FORBIDDEN will not be automatically

README  view on Meta::CPAN

       If the <id> of a <header> block is 'ALL', then _all_ requests for
       resources matched by the attached <path> tags. This is useful for
       allowing access to <path>/</path> and <path>index.html</path>, etc.

    REFERER
       If the <id> of a <header> block is 'REFERER', then the referer header
       is checked against an array of referer values specified by <referer>
       tags in the <header> block.

       For example, using the sample conf file, requests for
       /images/background.gif coming from a page on http://www.rulez.com/,
       or http://www.picnicman.com/ will be accepted.

       <referer> tags are treated as regexes ( like <path> tags ). The regex
       used is 'm|^$ar|' where $ar is the contents of the <referer> tags.

       One little trick is to use 'https?://' at the start of the regex to
       allow connections from either secure or insecure pages.

       Note: If the referer is not matched, FORBIDDEN will not be
       automatically returned. In this case, the module continues to loop



( run in 2.259 seconds using v1.01-cache-2.11-cpan-d8267643d1d )