Apache2::checkReferer - Prevent most "deep linking"
Version 0.02
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.
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>
<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.
bug-apache2-checkreferer at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Apache2::checkReferer
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache2-checkReferer
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Apache2-checkReferer
CPAN Ratings
http://cpanratings.perl.org/d/Apache2-checkReferer
Search CPAN
http://search.cpan.org/dist/Apache2-checkReferer
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.
To install Apache2::checkReferer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::checkReferer
CPAN shell
perl -MCPAN -e shell install Apache2::checkReferer
For more information on module installation, please visit the detailed CPAN module installation guide.