Skip to content

Dockerfile adlist processing code incorrectly omits certain ad domains #881

@Skyb0rg007

Description

@Skyb0rg007

From the Dockerfile:

cat ad-hosts.txt | grep '^0.0.0.0 '| awk '{ print $2; }' | grep -v '0.0.0.0' | jq --raw-input --slurp 'split("\n")' > /app/ad-hosts.json

This command incorrectly omits the domains 0.0.0.0.hpyrdr.com and 0.0.0.0.creative.hpyrdr.com, which are both listed in the StevenBlack adblock list but are filtered out by the grep -v '0.0.0.0' command.

A corrected snippet is:

cat ad-hosts.txt | grep '^0\.0\.0\.0 ' | awk '{ print $2; }' | grep -v '0\.0\.0\.0\( \|$\)' | jq --raw-input --slurp 'split("\n")' > /app/ad-hosts.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions