CI_User_agent::is_referral PHP Method

is_referral() public method

Is this a referral from another site?
public is_referral ( ) : boolean
return boolean
    public function is_referral()
    {
        if (!isset($this->referer)) {
            if (empty($_SERVER['HTTP_REFERER'])) {
                $this->referer = FALSE;
            } else {
                $referer_host = @parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST);
                $own_host = parse_url(config_item('base_url'), PHP_URL_HOST);
                $this->referer = $referer_host && $referer_host !== $own_host;
            }
        }
        return $this->referer;
    }