NAME

Apache2::checkReferer - Prevent most "deep linking"

VERSION

Version 0.02

SYNOPSIS

In httpd.conf:

    <Location /img/mybig.jpeg>

    PerlAccessHandler Apache2::checkReferer
    
    # option (default no) allow direct access
    # only check referer if there is one.
    PerlSetVar noRefererOK yes

    </Location>

You can steal my pictures, put them on your own server. Most browsers send a referer header, some (behind a proxy) do not. Also some search bots do not send a referer header.

FUNCTIONS

handler

A mod_perl2 handler. Checks wether or not your site's name is used in the referer header.

AUTHOR

Henk van Oers, <hvo.pm at xs4all.nl>

BUGS

Please report any bugs or feature requests to bug-apache2-checkreferer at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Apache2-checkReferer. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Apache2::checkReferer

You can also look for information at:

ACKNOWLEDGEMENTS

Thanks to Mark Overmeer, Jan-Pieter Cornet and Juerd Waalboer of the Amsterdam Perl Mongers (http://amsterdam.pm.org) for their contributions and advise.

COPYRIGHT & LICENSE

Copyright 2008 Henk van Oers, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.