protected function getReferer() { return empty($_SERVER['HTTP_REFERER']) ? null : substr($_SERVER['HTTP_REFERER'], 0, 255); }