Compare commits
11 Commits
6f4af0b573
...
1c688baf3e
Author | SHA1 | Date |
---|---|---|
Nick Spaargaren | 1c688baf3e | |
github-actions[bot] | 0f74190ddd | |
github-actions[bot] | 0f189da553 | |
QuickJack | 7cf6e5f045 | |
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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# Android
|
||||
|
||||
0.0.0.0 1-market.android.com
|
||||
|
@ -64,6 +64,7 @@
|
|||
0.0.0.0 phonedeviceverification-pa.googleapis.com
|
||||
0.0.0.0 photos-ugc.l.googleusercontent.com
|
||||
0.0.0.0 play-lh.googleusercontent.com
|
||||
0.0.0.0 playstoregatewayadapter-pa.googleapis.com
|
||||
0.0.0.0 r.android.com
|
||||
0.0.0.0 regioinfo-pa.googleapis.com
|
||||
0.0.0.0 regioninfo-pa.googleapis.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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# Android
|
||||
|
||||
1-market.android.com
|
||||
|
@ -64,6 +64,7 @@ performanceparameters.googleapis.com
|
|||
phonedeviceverification-pa.googleapis.com
|
||||
photos-ugc.l.googleusercontent.com
|
||||
play-lh.googleusercontent.com
|
||||
playstoregatewayadapter-pa.googleapis.com
|
||||
r.android.com
|
||||
regioinfo-pa.googleapis.com
|
||||
regioninfo-pa.googleapis.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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# General
|
||||
|
||||
0.0.0.0 0.chart.apis.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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# General
|
||||
|
||||
0.chart.apis.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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# 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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
# Analytics
|
||||
0.0.0.0 18.afs.googleadservices.com
|
||||
0.0.0.0 2.afs.googleadservices.com
|
||||
|
@ -227,6 +227,7 @@
|
|||
0.0.0.0 phonedeviceverification-pa.googleapis.com
|
||||
0.0.0.0 photos-ugc.l.googleusercontent.com
|
||||
0.0.0.0 play-lh.googleusercontent.com
|
||||
0.0.0.0 playstoregatewayadapter-pa.googleapis.com
|
||||
0.0.0.0 r.android.com
|
||||
0.0.0.0 regioinfo-pa.googleapis.com
|
||||
0.0.0.0 regioninfo-pa.googleapis.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-10-08
|
||||
! Last updated: 2023-11-09
|
||||
! Analytics
|
||||
||18.afs.googleadservices.com^$important
|
||||
||2.afs.googleadservices.com^$important
|
||||
|
@ -227,6 +227,7 @@
|
|||
||phonedeviceverification-pa.googleapis.com^$important
|
||||
||photos-ugc.l.googleusercontent.com^$important
|
||||
||play-lh.googleusercontent.com^$important
|
||||
||playstoregatewayadapter-pa.googleapis.com^$important
|
||||
||r.android.com^$important
|
||||
||regioinfo-pa.googleapis.com^$important
|
||||
||regioninfo-pa.googleapis.com^$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-10-08
|
||||
! Last updated: 2023-11-09
|
||||
! Analytics
|
||||
||18.afs.googleadservices.com^
|
||||
||2.afs.googleadservices.com^
|
||||
|
@ -227,6 +227,7 @@
|
|||
||phonedeviceverification-pa.googleapis.com^
|
||||
||photos-ugc.l.googleusercontent.com^
|
||||
||play-lh.googleusercontent.com^
|
||||
||playstoregatewayadapter-pa.googleapis.com^
|
||||
||r.android.com^
|
||||
||regioinfo-pa.googleapis.com^
|
||||
||regioninfo-pa.googleapis.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-10-08
|
||||
# Last updated: 2023-11-09
|
||||
|
||||
# Category: Analytics
|
||||
local-zone: "18.afs.googleadservices.com" always_refuse
|
||||
|
@ -229,6 +229,7 @@ local-zone: "performanceparameters.googleapis.com" always_refuse
|
|||
local-zone: "phonedeviceverification-pa.googleapis.com" always_refuse
|
||||
local-zone: "photos-ugc.l.googleusercontent.com" always_refuse
|
||||
local-zone: "play-lh.googleusercontent.com" always_refuse
|
||||
local-zone: "playstoregatewayadapter-pa.googleapis.com" always_refuse
|
||||
local-zone: "r.android.com" always_refuse
|
||||
local-zone: "regioinfo-pa.googleapis.com" always_refuse
|
||||
local-zone: "regioninfo-pa.googleapis.com" always_refuse
|
||||
|
|
|
@ -225,6 +225,7 @@ performanceparameters.googleapis.com
|
|||
phonedeviceverification-pa.googleapis.com
|
||||
photos-ugc.l.googleusercontent.com
|
||||
play-lh.googleusercontent.com
|
||||
playstoregatewayadapter-pa.googleapis.com
|
||||
r.android.com
|
||||
regioinfo-pa.googleapis.com
|
||||
regioninfo-pa.googleapis.com
|
||||
|
@ -8183,4 +8184,4 @@ www.tofu.jibemobile.com
|
|||
www.tokyo.jibemobile.com
|
||||
www.viper.jibemobile.com
|
||||
www.watermelon.jibemobile.com
|
||||
yellowstone.jibemobile.com
|
||||
yellowstone.jibemobile.com
|
||||
|
|
|
@ -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