Middleware to filter requests by referer header values.