Piwik\Plugins\PrivacyManager\DoNotTrackHeaderChecker::isHeaderDntFound PHP Method

isHeaderDntFound() protected method

protected isHeaderDntFound ( ) : boolean
return boolean
    protected function isHeaderDntFound()
    {
        return isset($_SERVER['HTTP_X_DO_NOT_TRACK']) && $_SERVER['HTTP_X_DO_NOT_TRACK'] === '1' || isset($_SERVER['HTTP_DNT']) && substr($_SERVER['HTTP_DNT'], 0, 1) === '1';
    }