From 0fd622e5d10cdbe9169cfce291729a5596b363eb Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Fri, 9 Mar 2018 05:49:46 -0600 Subject: [PATCH] Prevent robots from indexing uploads Although most user uploads are probably harmless, it's possible someone has (either maliciously or not) uploaded sensitive information. Prevent robots from indexing the uploads route. --- app/views/robots_txt/index.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/robots_txt/index.erb b/app/views/robots_txt/index.erb index 730032d6375..abb3cf51fee 100644 --- a/app/views/robots_txt/index.erb +++ b/app/views/robots_txt/index.erb @@ -27,5 +27,6 @@ Disallow: /*?api_key* Disallow: /*?*api_key* Disallow: /groups Disallow: /groups/ +Disallow: /uploads/ <%= server_plugin_outlet "robots_txt_index" %>