Compare commits

...

6 Commits

Author SHA1 Message Date
260f3c80ab
bump: 2025.1.25-176079977
All checks were successful
/ deploy (push) Successful in 9s
2025-01-26 05:44:27 +00:00
e2cca5edc8
bump: 2024.12.25-73e395c8c 2025-01-26 05:43:30 +00:00
30439afbe3
feat: generate blacklist from Dan Pollock’s hosts 2025-01-26 05:43:29 +00:00
904e2365a6
fix: remove unused regcred 2025-01-26 05:43:29 +00:00
477de95781
bump: 2024.6.7-f5eb56b63 2025-01-26 05:43:29 +00:00
b5b19849fc
fix: ban entire domain 2025-01-26 05:43:29 +00:00
4 changed files with 5650 additions and 2181 deletions

2
.env
View File

@ -1,2 +1,2 @@
PROD_URL=searx.gmoker.com
IMAGEAPP=docker.io/searxng/searxng:2024.12.22-26097f444
IMAGEAPP=docker.io/searxng/searxng:2025.1.25-176079977

File diff suppressed because it is too large Load Diff

View File

@ -237,9 +237,6 @@ enabled_plugins:
# Configuration of the "Hostnames plugin":
#
hostnames:
replace:
'(.*\.)?reddit\.com$': 'old.reddit.com'
'(.*\.)?redd\.it$': 'old.reddit.com'
remove: 'hostnames_remove.yml'
checker:
@ -334,6 +331,33 @@ engines:
timeout: 6
disabled: true
- name: alexandria
engine: json_engine
shortcut: alx
categories: general
paging: true
search_url: https://api.alexandria.org/?a=1&q={query}&p={pageno}
results_query: results
title_query: title
url_query: url
content_query: snippet
timeout: 1.5
disabled: true
about:
website: https://alexandria.org/
official_api_documentation: https://github.com/alexandria-org/alexandria-api/raw/master/README.md
use_official_api: true
require_api_key: false
results: JSON
# - name: astrophysics data system
# engine: astrophysics_data_system
# sort: asc
# weight: 5
# categories: [science]
# api_key: your-new-key
# shortcut: ads
- name: alpine linux packages
engine: alpinelinux
disabled: true
@ -1016,6 +1040,11 @@ engines:
timeout: 3.0
disabled: true
- name: ipernity
engine: ipernity
shortcut: ip
disabled: true
- name: jisho
engine: jisho
shortcut: js
@ -1486,6 +1515,11 @@ engines:
require_api_key: false
results: HTML
- name: Public Domain Image Archive
engine: public_domain_image_archive
shortcut: pdia
disabled: true
- name: pubmed
engine: pubmed
shortcut: pub

View File

@ -0,0 +1,27 @@
#!/usr/bin/env python3
import urllib.request as request
import re
HOSTS = "https://someonewhocares.org/hosts/zero/hosts"
OUTPUT = "config/hostnames_remove.yml"
def main():
with request.urlopen(HOSTS) as i:
with open(OUTPUT, "w+") as o:
print(
*sorted(
[
rf"- '(.*\.)?{re.escape(l.split()[1])}$'"
for l in i.read().decode("utf-8").split("\n")
if l.startswith("0")
]
),
sep="\n",
file=o,
)
if __name__ == "__main__":
main()