1
0
Fork 0

New blog post about SearXNG

This commit is contained in:
will 2023-09-02 06:01:53 -06:00
parent 32c4e77263
commit 5440aab611
3 changed files with 67 additions and 0 deletions

View file

@ -9,6 +9,17 @@
<uri>https://isopod.cool/</uri>
</author>
<generator>ME</generator>
<entry>
<title>Guide - Blacklisting Websites in SearXNG</title>
<id>guide_blacklist_websites_searxng</id>
<link rel="alternate" href="https://isopod.cool/blog/posts/guide_blacklist_websites_searxng/" type="html" title="Guide - Blacklisting Websites in SearXNG"></link>
<published>2023-09-02T00:00:00+00:00</published>
<updated>2023-09-02T00:00:00+00:00</updated>
<summary>How to permanently banish geeksforgeeks.org from your search results in the event you're using a self-hosted SearXNG instance and can't just install uBlacklist.</summary>
<category term="guide"/>
<category term="self-hosting"/>
<category term="searxng"/>
</entry>
<entry>
<title>Stop Using Chromium</title>
<id>stop_using_chromium</id>

View file

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Guide - Blacklisting Websites in SearXNG</title>
<link href="../../../style.css" rel="stylesheet" type="text/css" media="all">
<style>
h1 {
background-image: url('searxng.svg');
}
</style>
</head>
<body>
<h1>guide:</h1>
<h2 id="caption">Blacklisting Websites in SearXNG</h2>
<nav>
<a href="../../../">home</a>
<a href="../../">blog</a>
</nav>
<p>Quick one today. I got sick of searching for programming questions and seeing AI-generated scraped-from-stackoverflow click farm trash polluting the results, and I happen to use a personal SearXNG instance that no client-side blacklist extension on the planet is gonna support, so I went looking to see if I could blacklist them in SearXNG for like the eighth time and finally found a way using the hostname replace plugin. So here's that, because I didn't find this feature documented officially anywhere bar an <a href="https://github.com/searxng/searxng/discussions/970" target="_blank">issue</a> on the Github repo.</p>
<h2>How to do it</h2>
<p>First, open up your instance's config file. If you installed it directly like I did, that'll probably be <code>/etc/searxng/settings.yml</code>. If you used Docker, god help you. Anyway, find the <code>enabled_plugins:</code> section and uncomment the entry for <code>'Hostname replace'</code>, then uncomment the line <code>hostname_replace:</code> just below it. Under there you'll put your blocks:</p>
<code>
<span class="codetitle">/etc/searxng/settings.yml</span>
enabled_plugins:<br>
&nbsp;&nbsp;- 'Hostname replace'<br><br>
hostname_replace:<br>
&nbsp;&nbsp;'(.*\.)?codegrepper\.com': false<br>
&nbsp;&nbsp;'(.*\.)?geeksforgeeks\.org': false
</code>
<p>Then restart SearXNG:</p>
<code>
$ service uwsgi restart searxng
</code>
</body>
</html>

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" id="svg8" version="1.1" viewBox="0 0 92 92" height="92mm" width="92mm">
<defs id="defs2"/>
<metadata id="metadata5">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
<dc:title/>
</cc:Work>
</rdf:RDF>
</metadata>
<g transform="translate(-40.921303,-17.416526)" id="layer1">
<circle r="0" style="fill:none;stroke:#000000;stroke-width:12;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" cy="92" cx="75" id="path3713"/>
<circle r="30" cy="53.902557" cx="75.921303" id="path834" style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:10;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<path d="m 67.514849,37.91524 a 18,18 0 0 1 21.051475,3.312407 18,18 0 0 1 3.137312,21.078282" id="path852" style="fill:none;fill-opacity:1;stroke:#3050ff;stroke-width:5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
<rect transform="rotate(-46.234709)" ry="1.8669105e-13" y="122.08995" x="3.7063529" height="39.963303" width="18.846331" id="rect912" style="opacity:1;fill:#3050ff;fill-opacity:1;stroke:none;stroke-width:8;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"/>
</g>
<script xmlns=""/></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB