Skip to content

Default parser can be used on sites that are supposed to be disabled. #2761

Description

@dteviot

See:

Summary:
Sites that owners have requested be blocked in WebToEpub can still be processed (poorly) with the default parser.
All parsers need to be blocked for blocked sites.

Possible fix:
Create a global set similar to parserFactory but for all blocked sites like 'blockedsites' and in HttpClient.js line 197 change

if (BlockedHostNames.has(new URL(url).hostname)) {

to something like

if (BlockedHostNames.has(new URL(url).hostname) || blockedsites.has(new URL(url).hostname))

Note, should show the "Owner asked for site to be blocked" message.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions