-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
headers for every list ! url blocking in ublacklist !
- Loading branch information
1 parent
d62ab22
commit 2e41cf5
Showing
11 changed files
with
186 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generates a list in dnsmasq's blocking syntax from the content of the `sources` folder. | ||
# Usage: | ||
# python dnsmasq.py > dnsmasq.txt | ||
|
||
# Open header | ||
with open("sources/headers/default.txt", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/domains.txt", "r") as domains: | ||
linesdomains = domains.readlines() | ||
with open("sources/tlds.txt", "r") as tlds: | ||
linestlds = tlds.readlines() | ||
blocklist = linesdomains + linestlds | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print('address=/' + line.strip() + '/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generates a plain domains list from the content of the `sources` folder. | ||
# Usage: | ||
# python domains.py > domains.txt | ||
|
||
# Open header | ||
with open("sources/headers/default.txt", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/domains.txt", "r") as domains: | ||
linesdomains = domains.readlines() | ||
blocklist = linesdomains | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print(line.strip()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generates a .csv format used by FediBlockHole from the Fediverse content of the `sources` folder. | ||
# Usage: | ||
# python fediblockhole.py > fediblockhole.csv | ||
|
||
# Open header | ||
with open("sources/headers/fediblockhole.csv", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/fediverse_domains.txt", "r") as domains: | ||
linesfedidomains = domains.readlines() | ||
blocklist = linesfedidomains | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print(line.strip() + ',suspend,Super-SEO-Spam-Blocker blocklist,Super-SEO-Spam-Blocker blocklist') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generates a plain domains list from the Fediverse content of the `sources` folder. | ||
# Usage: | ||
# python fediverse_domains.py > fediverse_domains.txt | ||
|
||
# Open header | ||
with open("sources/headers/default.txt", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/fediverse_domains.txt", "r") as domains: | ||
linesfedidomains = domains.readlines() | ||
blocklist = linesfedidomains | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print(line.strip()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generates a list the hosts file format from the content of the `sources` folder. | ||
# Usage: | ||
# python hosts.py > hosts.txt | ||
|
||
# Open header | ||
with open("sources/headers/default.txt", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/domains.txt", "r") as domains: | ||
linesdomains = domains.readlines() | ||
blocklist = linesdomains | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print('0.0.0.0 ' + line.strip()) | ||
print('0.0.0.0 www.' + line.strip()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Generates a list the hosts file format for IPv6 from the content of the `sources` folder. | ||
# Usage: | ||
# python hosts_ipv6.py > hosts_ipv6.txt | ||
|
||
# Open header | ||
with open("sources/headers/default.txt", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/domains.txt", "r") as domains: | ||
linesdomains = domains.readlines() | ||
blocklist = linesdomains | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print('::1 ' + line.strip()) | ||
print('::1 www.' + line.strip()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generates a .csv format used by Mastodn from the Fediverse content of the `sources` folder. | ||
# Usage: | ||
# python mastodon.py > mastodon.csv | ||
|
||
# Open header | ||
with open("sources/headers/mastodon.csv", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/fediverse_domains.txt", "r") as domains: | ||
linesfedidomains = domains.readlines() | ||
blocklist = linesfedidomains | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print(line.strip() + ',suspend,false,false,Super-SEO-Spam-Blocker blocklist,false') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generates a list in the match pattern format for the the uBlacklist browser extension from the content of the `sources` folder. | ||
# Usage: | ||
# python ublacklist.py > ublacklist.txt | ||
|
||
# Open header | ||
with open("sources/headers/default.txt", "r") as header: | ||
linesheader = header.readlines() | ||
|
||
# Open blocked formats | ||
with open("sources/domains.txt", "r") as domains: | ||
linesdomains = domains.readlines() | ||
with open("sources/tlds.txt", "r") as tlds: | ||
linestlds = tlds.readlines() | ||
with open("sources/urls.txt", "r") as urls: | ||
linesurls = urls.readlines() | ||
blocklist = linesdomains + linestlds + linesurls | ||
|
||
# Print blocklist | ||
for line in linesheader: | ||
print(line.strip()) | ||
print() | ||
for line in blocklist: | ||
print('*://*.' + line.strip() + '/*') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# https://github.com/ite-usagi/ublacklist-noai | ||
reddit.com/r/aiart/ | ||
reddit.com/r/characterai/ | ||
reddit.com/r/chatgpt/ | ||
reddit.com/r/dalle2/ | ||
reddit.com/r/dalle/ | ||
reddit.com/r/deepdream/ | ||
reddit.com/r/defendingaiart/ | ||
reddit.com/r/generativeai/ | ||
reddit.com/r/generative/ | ||
reddit.com/r/gpt3/ | ||
reddit.com/r/midjourney/ | ||
reddit.com/r/novelai/ | ||
reddit.com/r/openai/ | ||
reddit.com/r/singularity/ | ||
reddit.com/r/stablediffusion/ | ||
reddit.com/r/aiart | ||
reddit.com/r/characterai | ||
reddit.com/r/chatgpt | ||
reddit.com/r/dalle2 | ||
reddit.com/r/dalle | ||
reddit.com/r/deepdream | ||
reddit.com/r/defendingaiart | ||
reddit.com/r/generativeai | ||
reddit.com/r/generative | ||
reddit.com/r/gpt3 | ||
reddit.com/r/midjourney | ||
reddit.com/r/novelai | ||
reddit.com/r/openai | ||
reddit.com/r/singularity | ||
reddit.com/r/stablediffusion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://monoreilleretmoi.com/blogs |