From 74ef4d1cf783f7b8cf1d73807495d2837c119e8a Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Thu, 25 Jun 2020 19:46:22 +0200 Subject: [PATCH] Remove useless robot protection code --- data/templates/nginx/yunohost_admin.conf | 6 ------ 1 file changed, 6 deletions(-) diff --git a/data/templates/nginx/yunohost_admin.conf b/data/templates/nginx/yunohost_admin.conf index d13dbfe90..ff823ba30 100644 --- a/data/templates/nginx/yunohost_admin.conf +++ b/data/templates/nginx/yunohost_admin.conf @@ -28,12 +28,6 @@ server { } location /yunohost { - # Block crawlers bot - if ($http_user_agent ~ (crawl|Googlebot|Slurp|spider|bingbot|tracker|click|parser|spider|facebookexternalhit) ) { - return 403; - } - # X-Robots-Tag to precise the rules applied. - add_header X-Robots-Tag "nofollow, noindex, noarchive, nosnippet"; # Redirect most of 404 to maindomain.tld/yunohost/sso access_by_lua_file /usr/share/ssowat/access.lua; }