Skip to content

Commit

Permalink
Fix wildcard urls format to also block subdomains
Browse files Browse the repository at this point in the history
  • Loading branch information
MIOGMIOG committed Aug 8, 2024
1 parent b0dd4df commit 3249f80
Show file tree
Hide file tree
Showing 7 changed files with 295 additions and 295 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def generate_blocklist(header_file, sitelist_file, output_file, format, filterli
domains_lines[i] = ('*.' + domains_lines[i])
elif format == 'wildcard_urls':
domains_lines[i] = line.replace("\n", '')
domains_lines[i] = ('*://' + domains_lines[i] + '/*' + "\n")
domains_lines[i] = ('*://*.' + domains_lines[i] + '/*' + "\n")
if line.startswith('!'):
if format == 'hosts' or format == 'domains' or format == 'wildcard_domains' or format == 'wildcard_urls':
domains_lines[i] = line.replace('!', '#')
Expand Down
2 changes: 1 addition & 1 deletion filterlist-abp.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Adblock Plus]
! Title: FMHY Unsafe sites filterlist
! Description: Blocks sites in the fmhy unsafe sites filterlists
! Last modified: 08 Aug 2024 16:12 UTC
! Last modified: 08 Aug 2024 16:23 UTC
! Homepage: https://github.com/WindowsAurora/FMHYFilterlist
! License: https://github.com/WindowsAurora/FMHYFilterlist/blob/main/LICENSE
! Issues: https://github.com/WindowsAurora/FMHYFilterlist/issues
Expand Down
2 changes: 1 addition & 1 deletion filterlist-domains.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Title: FMHY Unsafe sites filterlist
# Description: Blocks sites in the fmhy unsafe sites filterlists
# Last modified: 08 Aug 2024 16:12 UTC
# Last modified: 08 Aug 2024 16:23 UTC
# Homepage: https://github.com/WindowsAurora/FMHYFilterlist
# License: https://github.com/WindowsAurora/FMHYFilterlist/blob/main/LICENSE
# Issues: https://github.com/WindowsAurora/FMHYFilterlist/issues
Expand Down
2 changes: 1 addition & 1 deletion filterlist-hosts.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Title: FMHY Unsafe sites filterlist
# Description: Blocks sites in the fmhy unsafe sites filterlists
# Last modified: 08 Aug 2024 16:12 UTC
# Last modified: 08 Aug 2024 16:23 UTC
# Homepage: https://github.com/WindowsAurora/FMHYFilterlist
# License: https://github.com/WindowsAurora/FMHYFilterlist/blob/main/LICENSE
# Issues: https://github.com/WindowsAurora/FMHYFilterlist/issues
Expand Down
2 changes: 1 addition & 1 deletion filterlist-wildcard-domains.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Title: FMHY Unsafe sites filterlist
# Description: Blocks sites in the fmhy unsafe sites filterlists
# Last modified: 08 Aug 2024 16:12 UTC
# Last modified: 08 Aug 2024 16:23 UTC
# Homepage: https://github.com/WindowsAurora/FMHYFilterlist
# License: https://github.com/WindowsAurora/FMHYFilterlist/blob/main/LICENSE
# Issues: https://github.com/WindowsAurora/FMHYFilterlist/issues
Expand Down
Loading

0 comments on commit 3249f80

Please sign in to comment.