checkIsUrlBlocked

abstract suspend fun checkIsUrlBlocked(url: String, sourceUrl: String?, resourceType: String?): Boolean

Checks a URL to determine if it is blocked according to current configuration.

Return

true if the URL is blocked, false if it can be loaded

Parameters

url

The URL of the resource that should be checked against the currently active rulesets and the exceptions list

sourceUrl

The URL of the page that requested the url be loaded

resourceType

The MIME type of the resource indicated by the url, null if it is not known