Practical mod_perl / HTML Book /



previous page: B.9.5. Apache::TransLDAP—Trans Handler Example
  
page up: HTML Version of the book
  
next page: B.10.2. Apache::Usertrack—Emulate the mod_usertrack Apache Module

B.10.1. Apache::RefererBlock—Block Request Based Upon "Referer" Header


Apache::RefererBlock will examine each request. If the MIME type of the requested file is one of those listed in RefBlockMimeTypes, it will check the request's Referer header. If the referrer starts with one of the strings listed in RefBlockAllowed, access is granted. Otherwise, if there's a RefBlockRedirect directive for the referrer, a redirect is issued. If not, a "Forbidden" (403) error is returned.

Available from CPAN. See the module manpage for more information.

 

Continue to:

  • prev: B.9.5. Apache::TransLDAP—Trans Handler Example
  • Table of Contents
  • next: B.10.2. Apache::Usertrack—Emulate the mod_usertrack Apache Module







TOP
previous page: B.9.5. Apache::TransLDAP—Trans Handler Example
  
page up: HTML Version of the book
  
next page: B.10.2. Apache::Usertrack—Emulate the mod_usertrack Apache Module


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com