Create and automate AdGuard list (#73)

* Add automated AdGuard list
* Automated AdGuard list
This commit is contained in:
Nick Spaargaren 2021-11-27 17:33:25 +01:00 committed by GitHub
parent ffeee25de6
commit cb252a303b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 7161 additions and 17 deletions

25
.github/workflows/automated-adguard.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Update AdGuard list
on:
push:
paths:
- 'pihole-google.txt'
jobs:
update:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v2
name: Python setup
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run Python script
run: |
python adguard.py
- name: Commit AdGuard list
run: |
git config --global user.name 'Nick Spaargaren'
git config --global user.email 'nickspaargaren@users.noreply.github.com'
git pull origin ${GITHUB_REF##*/}
git commit -am "Automated AdGuard list update"
git push

View File

@ -23,5 +23,6 @@ jobs:
run: |
git config --global user.name 'Nick Spaargaren'
git config --global user.email 'nickspaargaren@users.noreply.github.com'
git pull origin ${GITHUB_REF##*/}
git commit -am "Automated categories update"
git push

16
adguard.py Normal file
View File

@ -0,0 +1,16 @@
from datetime import date
today = date.today()
file_name = 'pihole-google-adguard'
newfile = open(file_name + '.txt', 'w')
newfile.write('! This blocklist helps Pi-hole\'s admin restrict access to Google and its domains.'+'\n')
newfile.write('! Last updated: ' + today.strftime('%d-%m-%Y') +'\n')
with open('pihole-google.txt', 'r') as main:
for line in main:
if '#' in line:
newfile.write('! ' + line[2:])
elif not '#' in line:
newfile.write('||' + line.rstrip("\n") + '^' + '\n')

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Analytics
0.0.0.0 apis.googletagmanager.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Android
0.0.0.0 1-market.android.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Area120
0.0.0.0 staykeen.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# DNS
0.0.0.0 8.8.8.8

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Domains
0.0.0.0 google.ac

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Doubleclick
0.0.0.0 2507573.fls.doubleclick.net

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Fiber
0.0.0.0 speedtest.googlefiber.net

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Firebase
0.0.0.0 0.firebaseio.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Fonts
0.0.0.0 fonts.google.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# General
0.0.0.0 00hrf5vjtk.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Googlevideo
0.0.0.0 0.0-78-194.cache.googlevideo.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Mail
0.0.0.0 mail-bk0-f41.google.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Pagelink
0.0.0.0 0utlookmxupdates1.page.link

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Products
0.0.0.0 accounts.google.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Proxies
0.0.0.0 google-proxy-64-233-172-0.google.com

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Short Links
0.0.0.0 cctldtest.g.co

View File

@ -1,5 +1,5 @@
#This blocklist helps Pi-hole's admin restrict access to Google and its domains.
#Last updated: 26-11-2021
#Last updated: 27-11-2021
# Youtube
0.0.0.0 .youtubeeducation.com

7102
pihole-google-adguard.txt Normal file

File diff suppressed because it is too large Load Diff