$blockableScanner
$blockableScanner :
Put in a list of `ScanEntry`'s and sort out false-positives and deduplicate. Keep in mind, that this processor can also touch your `ScanEntry` properties as well!
__construct(\DevOwl\HeadlessContentBlocker\plugins\scanner\BlockableScanner $blockableScanner,array<mixed,\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry> $entries)
C'tor.
\DevOwl\HeadlessContentBlocker\plugins\scanner\BlockableScanner | $blockableScanner | |
array<mixed,\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry> | $entries |
convertExternalUrlsCoveredByPreset(array<mixed,\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry> $entries = null)
Convert external URLs which got covered by a preset. When is this the case? When using a `SelectorSyntaxBlocker` with e.g. `link[href=""]` (for example WordPress emojis).
array<mixed,\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry> | $entries | The entries to check, defaults to current instance entries |
convertStandaloneLinkRelPresetToExternalUrl()
Convert a found `link[rel="preconnect|dns-prefetch"]` within a preset and stands alone within this preset to an external URL as a DNS-prefetch and preconnect **must** be loaded in conjunction with another script.
canExternalUrlBeBypassed(\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry $entry)
Example: A blocked form does not have reCAPTCHA, got found as "CleverReach". The `form[action]` does not need to get blocked due to the fact the server is only contacted through submit-interaction (a privacy policy needs to be linked / checkbox).
\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry | $entry |
alreadyExistsInOtherFoundPreset(\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry $scanEntry): false|\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry
Check if a given preset already exists in another scan result.
\DevOwl\HeadlessContentBlocker\plugins\scanner\ScanEntry | $scanEntry |
The found entry which better suits this preset