Apache2::checkReferer - Prevent most "deep linking"
<Location /img/mybig.jpeg>PerlAccessHandler Apache2::checkReferer # option (default no) allow direct access # only check referer if there is one. PerlSetVar noRefererOK yes
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.
A mod_perl2 handler. Checks wether or not your site's name is used in the referer header.
Henk van Oers,
<hvo.pm at xs4all.nl>
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.
You can find documentation for this module with the perldoc command.
You can also look for information at:
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 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.