'Check if the given URL (as QUrl) is blocked.'

def is_blocked(self, url):

    if (not config.get('content', 'host-blocking-enabled')):
        return False
    host = url.host()
    return (((host in self._blocked_hosts) or (host in self._config_blocked_hosts)) and (not is_whitelisted_host(host)))
