February 2018
Beginner to intermediate
348 pages
9h 40m
English
A simple directive is introduced by this module: valid_referers. Its purpose is to check the Referer HTTP header from the client request and to possibly deny access based on the value. If the referrer is considered invalid, $invalid_referer is set to 1. In the list of valid referrers, you may employ three kinds of values:
Following the definition of the $invalid_referer variable, you may, for example, return an error code if the referrer was found invalid:
valid_referers none blocked *.website.com *.google.com; if ...
Read now
Unlock full access