From cb2f24ba8dd12a70d09fbf6ee8e77de7f813e774 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 28 Jan 2023 23:16:49 +0000 Subject: [PATCH] Remove BrokenLinkEmailsMiddleware I got spammed with a few emails from seemingly bots trying to access the site URLs with `/favicon.ico` at the end, for example: /about//favicon.ico If this goes out of hand, it could cause significant costs from the email service. --- {{cookiecutter.project_slug}}/config/settings/base.py | 1 - 1 file changed, 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/config/settings/base.py b/{{cookiecutter.project_slug}}/config/settings/base.py index 44b03fa03..3d93ffb43 100644 --- a/{{cookiecutter.project_slug}}/config/settings/base.py +++ b/{{cookiecutter.project_slug}}/config/settings/base.py @@ -152,7 +152,6 @@ MIDDLEWARE = [ "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", - "django.middleware.common.BrokenLinkEmailsMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", ]