Skip to content

block domains instead of prefixes #78

@lorello

Description

@lorello

I really appreciate this small software, I like to add my 2 cents on configuration of filter.txt file.

I need to ignore URLs like:

Probably an antivirus trying to access the webpage for some security check.

Instead of multiply the lines in the configuration file for each subdomain used by the software house, I'd like to ignore the domain kaspersky-labs.com entirely.

I'm not a developer but I think I could change this line:

if strings.HasPrefix(r.Body.BlockedURI, value) {

and use strings.Contains instad of strings.HasPrefix, if you think is an acceptable change I'll try to arrange a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions