piwik/core/Tracker/VisitExcluded.php
/**
     * Returns true if the Referrer is a known spammer.
     *
     * @return bool
     */
Returns true if the Referrer is a known spammer.
@return bool
Returns true if the Referrer is a known spammer . @return bool
protected function isReferrerSpamExcluded()
    {
        $spamHosts = Config::getInstance()->Tracker['referrer_urls_spam'];
        $spamHosts = explode(",", $spamHosts);
        $referrerUrl = $this->request->getParam('urlref');
        foreach($spamHosts as $spamHost) {
            $spamHost = trim($spamHost);
            if ( strpos($referrerUrl, $spamHost) !== false) {
                Common::printDebug('Referrer URL is a known spam: ' . $spamHost);
                return true;
            }
        }
        return false;
    }
protected function isReferrerSpamExcluded ( ) { $ spamHosts = Config :: getInstance ( ) -> Tracker [ 'referrer_urls_spam' ] ; $ spamHosts = explode ( " , " , $ spamHosts ) ; $ referrerUrl = $ this -> request -> getParam ( 'urlref' ) ; foreach ( $ spamHosts as $ spamHost ) { $ spamHost = trim ( $ spamHost ) ; if ( strpos ( $ referrerUrl , $ spamHost ) !== false ) { Common :: printDebug ( 'Referrer URL is a known spam: ' . $ spamHost ) ; return true ; } } return false ; }
Returns true if the Referrer is a known spammer.
Returns true if the Referrer is a known spammer .