]> git.openstreetmap.org Git - chef.git/commitdiff
Revert "nominatim: improve IP query block expression"
authorSarah Hoffmann <lonvia@denofr.de>
Tue, 2 Apr 2024 09:59:43 +0000 (11:59 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Tue, 2 Apr 2024 09:59:43 +0000 (11:59 +0200)
This reverts commit 6beb17e095d006393405d9882fb762837df78588.

cookbooks/nominatim/templates/default/nginx.erb

index 4f171bf06958e71427b9edcc508fc4a70a188b46..f4eec183ec6646949adbc8a83511e46a434f6028 100644 (file)
@@ -194,7 +194,7 @@ server {
         { return 403; }
         if ($blocked_email)
         { return 403; }
-        if ($arg_q ~* "^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$")
+        if ($args ~* "q=[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[ &]")
         { return 418; }
         include <%= @confdir %>/nginx_blocked_generic.conf;