Skip to content

Commit

Permalink
Add ADs domain from v2fly category-ads list
Browse files Browse the repository at this point in the history
  • Loading branch information
xkww3n committed Jun 19, 2024
1 parent faac124 commit 9726b07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workers/reject_exclude.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from utils.log_decorator import log
from utils.rule import strip_adblock
from utils.ruleset import batch_dump, patch
from utils.geosite import parse as geosite_parse


@log
Expand Down Expand Up @@ -66,6 +67,10 @@ def build():
src_exclusions.append(line.text)
logging.debug(f'(source) Exclude: Added "{line.text}"')

ruleset_rejections_v2fly = geosite_parse(config.PATH_SOURCE_GEOSITE/"category-ads")
ruleset_rejections |= ruleset_rejections_v2fly
logging.info(f"Imported {(len(ruleset_rejections_v2fly))} reject rules from v2fly category-ads list.")

for line in parse_filterlist(src_exclusions):
line_stripped = strip_adblock(line)
if not line_stripped:
Expand Down

0 comments on commit 9726b07

Please sign in to comment.