From 730355d04626a8ed5c0e7c4b58d406b6e8bfb1cb Mon Sep 17 00:00:00 2001 From: kurets Date: Thu, 5 Sep 2024 21:13:08 +0300 Subject: [PATCH] 1. add nginx 404 block for spammers and bots based on their user agent. 2. add HTTP basic auth (NGINX and Apache) to protect your site or selfhosted apps from those same spammers, bots and freeloaders (build) --- ...ck-and-filter-spam-requests-with-user-agents-in-nginx.md | 2 +- .../index.html | 6 +++--- .../index.html | 2 +- .../index.html | 2 +- public/articles/index.html | 2 +- public/articles/index.xml | 2 +- public/index.html | 6 +++--- public/index.xml | 2 +- public/library/hackbook/index.xml | 2 +- public/library/index.xml | 2 +- public/library/ted-kaczynski/index.xml | 2 +- public/tags/blog/index.xml | 2 +- public/tags/hackbook/index.xml | 2 +- public/tags/index.xml | 2 +- public/tags/library/index.xml | 2 +- public/tags/personal/index.xml | 2 +- public/tags/ted-kaczynski/index.xml | 2 +- public/tags/updates/index.xml | 2 +- 18 files changed, 22 insertions(+), 22 deletions(-) diff --git a/content/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx.md b/content/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx.md index 9e0d4e49..0424c366 100644 --- a/content/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx.md +++ b/content/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx.md @@ -1,5 +1,5 @@ --- -title: "Block and Filter Spam Requests With User-Agents in Nginx" +title: "Block and Filter Spam Requests With User-Agents in NGINX" date: 2024-09-05T16:58:04+03:00 draft: false --- diff --git a/public/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/index.html b/public/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/index.html index c099f1a5..1fb01d85 100644 --- a/public/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/index.html +++ b/public/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/index.html @@ -1,7 +1,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx | vodoraslo's blog + Block and Filter Spam Requests With User-Agents in NGINX | vodoraslo's blog @@ -15,11 +15,11 @@ Adapt the following for your use case and simply place it in every nginx.conf th
-

Block and Filter Spam Requests With User-Agents in Nginx

+

Block and Filter Spam Requests With User-Agents in NGINX


diff --git a/public/articles/blog/neater-footnotes-in-hugo-using-the-details-html-tag/index.html b/public/articles/blog/neater-footnotes-in-hugo-using-the-details-html-tag/index.html index bc27581e..b374bdf2 100644 --- a/public/articles/blog/neater-footnotes-in-hugo-using-the-details-html-tag/index.html +++ b/public/articles/blog/neater-footnotes-in-hugo-using-the-details-html-tag/index.html @@ -76,7 +76,7 @@ That is no more! I’m sick of doing it and I don’t know how I just re
Tags: [Blog] diff --git a/public/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache/index.html b/public/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache/index.html index 9534ec70..ce434795 100644 --- a/public/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache/index.html +++ b/public/articles/blog/restrict-unwanted-access-with-http-basic-auth-nginx-and-apache/index.html @@ -89,7 +89,7 @@ Create a username and password for authentication (or more than 1 user) First:"/

diff --git a/public/articles/index.html b/public/articles/index.html index 938ebb5f..8aa788d6 100644 --- a/public/articles/index.html +++ b/public/articles/index.html @@ -39,7 +39,7 @@ blog (8) hackbook (59) library (74) ted-kaczynski (15) updates (3) "/>
    - + diff --git a/public/articles/index.xml b/public/articles/index.xml index a165bdbc..20ea0fc9 100644 --- a/public/articles/index.xml +++ b/public/articles/index.xml @@ -75,7 +75,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/index.html b/public/index.html index f1af1c57..9af1d977 100644 --- a/public/index.html +++ b/public/index.html @@ -40,10 +40,10 @@ more about Restrict Unwanted Access With HTTP Basic Authentication - NGINX and Apache (1 minute read).
  • – - Block and Filter Spam Requests With User-Agents in Nginx - Block and Filter Spam Requests With User-Agents in NGINX - My server has been getting bussyblasted by spam requests from bots and other subhumans and I figured out a way to block them with NGINX. -Adapt the … Read - more about Block and Filter Spam Requests With User-Agents in Nginx (1 minute read).
  • +Adapt the … Read + more about Block and Filter Spam Requests With User-Agents in NGINX (1 minute read).
  • Neater Footnotes in Hugo Using the <details> HTML Tag - - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/library/hackbook/index.xml b/public/library/hackbook/index.xml index f7fc8490..f12bb83a 100644 --- a/public/library/hackbook/index.xml +++ b/public/library/hackbook/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/library/index.xml b/public/library/index.xml index 96a838cf..9bdd6c50 100644 --- a/public/library/index.xml +++ b/public/library/index.xml @@ -75,7 +75,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/library/ted-kaczynski/index.xml b/public/library/ted-kaczynski/index.xml index 844ac1a9..8a27c4c8 100644 --- a/public/library/ted-kaczynski/index.xml +++ b/public/library/ted-kaczynski/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/tags/blog/index.xml b/public/tags/blog/index.xml index 5d9903a5..6d327761 100644 --- a/public/tags/blog/index.xml +++ b/public/tags/blog/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/tags/hackbook/index.xml b/public/tags/hackbook/index.xml index 9c4099e8..026f4db5 100644 --- a/public/tags/hackbook/index.xml +++ b/public/tags/hackbook/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/tags/index.xml b/public/tags/index.xml index f4c59704..f519ecb3 100644 --- a/public/tags/index.xml +++ b/public/tags/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/tags/library/index.xml b/public/tags/library/index.xml index 43ff8e56..0be32b81 100644 --- a/public/tags/library/index.xml +++ b/public/tags/library/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/tags/personal/index.xml b/public/tags/personal/index.xml index 5bcfddf7..be74289f 100644 --- a/public/tags/personal/index.xml +++ b/public/tags/personal/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/tags/ted-kaczynski/index.xml b/public/tags/ted-kaczynski/index.xml index 301ef6df..e790673b 100644 --- a/public/tags/ted-kaczynski/index.xml +++ b/public/tags/ted-kaczynski/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300 diff --git a/public/tags/updates/index.xml b/public/tags/updates/index.xml index b163a317..7a07ee26 100644 --- a/public/tags/updates/index.xml +++ b/public/tags/updates/index.xml @@ -76,7 +76,7 @@ - Block and Filter Spam Requests With User-Agents in Nginx + Block and Filter Spam Requests With User-Agents in NGINX https://vodoraslo.xyz/articles/blog/block-and-filter-spam-requests-with-user-agents-in-nginx/ Thu, 05 Sep 2024 16:58:04 +0300