mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-08-01 22:54:13 +03:00
Compare commits
4 Commits
2026-05-18
...
2026-05-21
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e3879f4c2 | ||
|
|
c2a5e7c2fd | ||
|
|
e2d587a39f | ||
|
|
8dabab954f |
@@ -7,3 +7,4 @@
|
||||
35.208.0.0/12
|
||||
5.200.14.128/25
|
||||
66.22.192.0/18
|
||||
104.16.0.0/12
|
||||
|
||||
@@ -7,3 +7,4 @@
|
||||
35.208.0.0/12
|
||||
5.200.14.128/25
|
||||
66.22.192.0/18
|
||||
104.16.0.0/12
|
||||
|
||||
@@ -292,7 +292,12 @@ if __name__ == '__main__':
|
||||
# Ukraine
|
||||
Path("Ukraine").mkdir(parents=True, exist_ok=True)
|
||||
|
||||
urllib.request.urlretrieve("https://uablacklist.net/domains.txt", "uablacklist-domains.lst")
|
||||
with urllib.request.urlopen("https://raw.githubusercontent.com/uablacklist/uablacklist.net/master/gen/scripts/domains.json") as resp:
|
||||
uablacklist_data = json.loads(resp.read().decode())
|
||||
with open("uablacklist-domains.lst", 'w') as f:
|
||||
for domain in uablacklist_data.keys():
|
||||
f.write(f"{domain}\n")
|
||||
|
||||
urllib.request.urlretrieve("https://raw.githubusercontent.com/zhovner/zaborona_help/master/config/domainsdb.txt", "zaboronahelp-domains.lst")
|
||||
|
||||
ua_lists = ['uablacklist-domains.lst', 'zaboronahelp-domains.lst', uaDomainsSrc]
|
||||
|
||||
@@ -36,6 +36,11 @@ DISCORD_VOICE_V6='https://iplist.opencck.org/?format=text&data=cidr6&site=discor
|
||||
|
||||
DISCORD = 'discord.lst'
|
||||
|
||||
# todo: parse this dynamically!
|
||||
DISCORD_CF_V4 = [
|
||||
'104.16.0.0/12',
|
||||
]
|
||||
|
||||
TELEGRAM_CIDR_URL = 'https://core.telegram.org/resources/cidr.txt'
|
||||
|
||||
CLOUDFLARE_V4='https://www.cloudflare.com/ips-v4'
|
||||
@@ -161,6 +166,7 @@ if __name__ == '__main__':
|
||||
# Discord voice
|
||||
print(f'Fetching {DISCORD}...')
|
||||
ipv4_discord, ipv6_discord = download_subnets(DISCORD_VOICE_V4, DISCORD_VOICE_V6)
|
||||
ipv4_discord.extend(DISCORD_CF_V4)
|
||||
write_subnets_to_file(ipv4_discord, f'{IPv4_DIR}/{DISCORD}')
|
||||
write_subnets_to_file(ipv6_discord, f'{IPv6_DIR}/{DISCORD}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user