From d714997f58fceb6a56725a382ee1a83c7fa9bdd7 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 10 Jul 2019 23:56:40 +0200 Subject: [PATCH] Block requests from Gab --- templates/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/nginx.conf b/templates/nginx.conf index f71e843..60270a3 100644 --- a/templates/nginx.conf +++ b/templates/nginx.conf @@ -8,6 +8,11 @@ http { server { listen 9000; + # Block all requests from Gab instances + if ($http_user_agent ~* "GabSocial") { + return 404; + } + # Hide nginx version server_tokens off;