From 010e3dd369347f74e5b8423fa38ddbcb52863f41 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Wed, 27 Mar 2024 14:13:25 +0100 Subject: [PATCH] nominatim: remove referer block on details again --- cookbooks/nominatim/templates/default/nginx.erb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cookbooks/nominatim/templates/default/nginx.erb b/cookbooks/nominatim/templates/default/nginx.erb index e15099c05..f4eec183e 100644 --- a/cookbooks/nominatim/templates/default/nginx.erb +++ b/cookbooks/nominatim/templates/default/nginx.erb @@ -85,11 +85,6 @@ map $missing_referer$missing_ua$email_id $blocked_email { include <%= @confdir %>/nginx_blocked_email.conf; } -map $nominatim_script_name$missing_referer $blocked_path { - default 0; - "details1" 1; -} - map $whitelisted $limit_www { 1 ""; 0 $binary_remote_addr; @@ -199,8 +194,6 @@ server { { return 403; } if ($blocked_email) { return 403; } - if ($blocked_path) - { return 403; } if ($args ~* "q=[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+[ &]") { return 418; } include <%= @confdir %>/nginx_blocked_generic.conf; -- 2.39.5