Compare commits
10 Commits
1c688baf3e
...
1cbd2501e0
Author | SHA1 | Date |
---|---|---|
Nick Spaargaren | 1cbd2501e0 | |
github-actions[bot] | 18af5dae5b | |
Nick Spaargaren | 31dd3b05f8 | |
Nick Spaargaren | 476145e29c | |
Nick Spaargaren | ff691049ce | |
Nick Spaargaren | b827cf9f1f | |
Nick Spaargaren | 7b4999ead0 | |
Nick Spaargaren | 093e901f54 | |
Nick Spaargaren | 22bd626c65 | |
Nick Spaargaren | f85402f964 |
|
@ -1 +1,2 @@
|
|||
/.idea
|
||||
scripts/.env
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Analytics
|
||||
|
||||
0.0.0.0 18.afs.googleadservices.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Analytics
|
||||
|
||||
18.afs.googleadservices.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Android
|
||||
|
||||
0.0.0.0 1-market.android.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Android
|
||||
|
||||
1-market.android.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Area120
|
||||
|
||||
0.0.0.0 kormo.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Area120
|
||||
|
||||
kormo.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# DNS
|
||||
|
||||
0.0.0.0 014dcb18-dnsotls-ds.metric.gstatic.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# DNS
|
||||
|
||||
014dcb18-dnsotls-ds.metric.gstatic.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Domains
|
||||
|
||||
0.0.0.0 _caldav._tcp.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Domains
|
||||
|
||||
_caldav._tcp.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Doubleclick
|
||||
|
||||
0.0.0.0 0.fls.doubleclick.net
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Doubleclick
|
||||
|
||||
0.fls.doubleclick.net
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Fiber
|
||||
|
||||
0.0.0.0 atlanta.speed.googlefiber.net
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Fiber
|
||||
|
||||
atlanta.speed.googlefiber.net
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Firebase
|
||||
|
||||
0.0.0.0 0.firebaseio.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Firebase
|
||||
|
||||
0.firebaseio.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Fitbit
|
||||
|
||||
0.0.0.0 000-client.fitbit.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Fitbit
|
||||
|
||||
000-client.fitbit.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Fonts
|
||||
|
||||
0.0.0.0 fonts.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Fonts
|
||||
|
||||
fonts.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# General
|
||||
|
||||
0.0.0.0 0.chart.apis.google.com
|
||||
|
@ -602,6 +602,7 @@
|
|||
0.0.0.0 db408yef6a.com
|
||||
0.0.0.0 de.advertisercommunity.com
|
||||
0.0.0.0 deepmind.com
|
||||
0.0.0.0 deepmind.google
|
||||
0.0.0.0 defloration.ns1.google.com
|
||||
0.0.0.0 dep.admob.com
|
||||
0.0.0.0 design.google
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# General
|
||||
|
||||
0.chart.apis.google.com
|
||||
|
@ -602,6 +602,7 @@ datastudio.google.com
|
|||
db408yef6a.com
|
||||
de.advertisercommunity.com
|
||||
deepmind.com
|
||||
deepmind.google
|
||||
defloration.ns1.google.com
|
||||
dep.admob.com
|
||||
design.google
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Jibemobile
|
||||
|
||||
0.0.0.0 cdn.jibemobile.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Jibemobile
|
||||
|
||||
cdn.jibemobile.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Mail
|
||||
|
||||
0.0.0.0 chatenabled.mail.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Mail
|
||||
|
||||
chatenabled.mail.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Nest
|
||||
|
||||
0.0.0.0 accounts.ft.nest.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Nest
|
||||
|
||||
accounts.ft.nest.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Pagelink
|
||||
|
||||
0.0.0.0 0utlookmxupdates1.page.link
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Pagelink
|
||||
|
||||
0utlookmxupdates1.page.link
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Products
|
||||
|
||||
0.0.0.0 actions.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Products
|
||||
|
||||
actions.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Proxies
|
||||
|
||||
0.0.0.0 google-proxy-64-233-172-0.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Proxies
|
||||
|
||||
google-proxy-64-233-172-0.google.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Short Links
|
||||
|
||||
0.0.0.0 app.goo.gl
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Short Links
|
||||
|
||||
app.goo.gl
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Youtube
|
||||
|
||||
0.0.0.0 _domainkey.youtube.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Youtube
|
||||
|
||||
_domainkey.youtube.com
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
# Analytics
|
||||
0.0.0.0 18.afs.googleadservices.com
|
||||
0.0.0.0 2.afs.googleadservices.com
|
||||
|
@ -3211,6 +3211,7 @@
|
|||
0.0.0.0 db408yef6a.com
|
||||
0.0.0.0 de.advertisercommunity.com
|
||||
0.0.0.0 deepmind.com
|
||||
0.0.0.0 deepmind.google
|
||||
0.0.0.0 defloration.ns1.google.com
|
||||
0.0.0.0 dep.admob.com
|
||||
0.0.0.0 design.google
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
! This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
! Last updated: 2023-11-09
|
||||
! Last updated: 2023-12-07
|
||||
! Analytics
|
||||
||18.afs.googleadservices.com^$important
|
||||
||2.afs.googleadservices.com^$important
|
||||
|
@ -3211,6 +3211,7 @@
|
|||
||db408yef6a.com^$important
|
||||
||de.advertisercommunity.com^$important
|
||||
||deepmind.com^$important
|
||||
||deepmind.google^$important
|
||||
||defloration.ns1.google.com^$important
|
||||
||dep.admob.com^$important
|
||||
||design.google^$important
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
! This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
! Last updated: 2023-11-09
|
||||
! Last updated: 2023-12-07
|
||||
! Analytics
|
||||
||18.afs.googleadservices.com^
|
||||
||2.afs.googleadservices.com^
|
||||
|
@ -3211,6 +3211,7 @@
|
|||
||db408yef6a.com^
|
||||
||de.advertisercommunity.com^
|
||||
||deepmind.com^
|
||||
||deepmind.google^
|
||||
||defloration.ns1.google.com^
|
||||
||dep.admob.com^
|
||||
||design.google^
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# This blocklist helps to restrict access to Google and its domains. Contribute at https://github.com/nickspaargaren/no-google
|
||||
# Last updated: 2023-11-09
|
||||
# Last updated: 2023-12-07
|
||||
|
||||
# Category: Analytics
|
||||
local-zone: "18.afs.googleadservices.com" always_refuse
|
||||
|
@ -3221,6 +3221,7 @@ local-zone: "datastudio.google.com" always_refuse
|
|||
local-zone: "db408yef6a.com" always_refuse
|
||||
local-zone: "de.advertisercommunity.com" always_refuse
|
||||
local-zone: "deepmind.com" always_refuse
|
||||
local-zone: "deepmind.google" always_refuse
|
||||
local-zone: "defloration.ns1.google.com" always_refuse
|
||||
local-zone: "dep.admob.com" always_refuse
|
||||
local-zone: "design.google" always_refuse
|
||||
|
|
|
@ -3209,6 +3209,7 @@ datastudio.google.com
|
|||
db408yef6a.com
|
||||
de.advertisercommunity.com
|
||||
deepmind.com
|
||||
deepmind.google
|
||||
defloration.ns1.google.com
|
||||
dep.admob.com
|
||||
design.google
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
import whois # pip install python-whois
|
||||
import time
|
||||
import re
|
||||
|
||||
|
||||
def get_domain(url: str) -> str:
|
||||
"""
|
||||
A function that extracts the domain name from a `url`
|
||||
"""
|
||||
domain = re.findall("(?<=\.)[^.]+\.[^.]+$", url)
|
||||
if domain != []:
|
||||
return domain[0]
|
||||
else:
|
||||
return url
|
||||
|
||||
|
||||
def remove_duplicates(mylist: list[str]):
|
||||
return list(dict.fromkeys(mylist))
|
||||
|
||||
|
||||
def get_domains():
|
||||
with open('../pihole-google.txt', 'r') as main:
|
||||
for line in main:
|
||||
if not '#' in line and not ':' in line:
|
||||
line = get_domain(line)
|
||||
if line != '\n' and line != []:
|
||||
line = re.sub(r"\n", "", line)
|
||||
yield line
|
||||
|
||||
|
||||
def is_registered(domain):
|
||||
"""
|
||||
A function that checks whether a `domain` is can get whois info
|
||||
"""
|
||||
time.sleep(1)
|
||||
try:
|
||||
w = whois.whois(domain, flags=whois.NICClient.WHOIS_QUICK)
|
||||
except Exception:
|
||||
return False
|
||||
else:
|
||||
return [w.domain_name, w.org, w.name_servers]
|
||||
|
||||
|
||||
# iterate over domains
|
||||
domains = remove_duplicates(get_domains())
|
||||
|
||||
for domain in domains:
|
||||
print(domain, is_registered(domain.rstrip("\n")))
|
Loading…
Reference in New Issue