Create and automate AdGuard list (#73)
* Add automated AdGuard list * Automated AdGuard list
This commit is contained in:
parent
ffeee25de6
commit
cb252a303b
|
@ -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
|
|
@ -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
|
|
@ -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')
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue