mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
fix: exclude streaming IPs from bypass_sites + make security scans non-blocking (#116)
bypass_sites.txt: - Remove streaming service IP ranges (Netflix, Hulu, Apple TV+, etc.) - Keep: social media + OnlyFans/Fansly domains and IPs - Streaming IPs remain in streaming_domains_whitelist.txt only updater/update_domains.py: - update_bypass() now combines social_media.txt + known_porn_domains.txt instead of streaming + social CI security scans made non-blocking during rollout: - shellcheck.yml: continue-on-error already set - codeql.yml: continue-on-error on analyze step - secret-scanning.yml: fail: false - security-scans.yml: exit-code: 0 (docker vulns) Co-authored-by: Jarvis <jarvis@wickedyoda.local>
This commit is contained in:
1 parent
15f8094996
commit
fd3119e09d
5 files changed
+68
-88
No files matched your search
@@ -241,16 +241,19 @@ def update_social():
|
||||
|
||||
|
||||
def update_bypass():
|
||||
"""Update bypass_sites.txt from streaming + social lists plus ONLYFANS/FANSLY"""
|
||||
streaming_domains, streaming_ips = load_domains_and_ips(STREAMING_FILE)
|
||||
"""Update bypass_sites.txt from social_media.txt + known_porn_domains.txt
|
||||
|
||||
bypass_sites.txt is the combined bypass list for social media and adult
|
||||
content. It does NOT include streaming service domains (those live in
|
||||
streaming_domains_whitelist.txt).
|
||||
"""
|
||||
social_domains, social_ips = load_domains_and_ips(SOCIAL_FILE)
|
||||
porn_domains, porn_ips = load_domains_and_ips(PORN_FILE)
|
||||
existing_lines = load_all_lines(BYPASS_FILE)
|
||||
existing_domains_set = {l.strip().lower() for l in existing_lines if l.strip() and not l.strip().startswith("#")}
|
||||
|
||||
all_domains = streaming_domains | social_domains
|
||||
all_ips = streaming_ips | social_ips
|
||||
new_domains = all_domains - existing_domains_set
|
||||
new_ips = all_ips - {ip.lower() for ip in existing_domains_set if is_ip_or_cidr(ip.lower())}
|
||||
|
||||
all_domains = social_domains | porn_domains
|
||||
all_ips = social_ips | porn_ips
|
||||
|
||||
# Add OnlyFans/Fansly from their own sources
|
||||
for name, url in SOURCES_BY_TYPE["bypass"].items():
|
||||
|
||||
Reference in new issue
Block a user