>
>
> On Sun, Mar 24, 2019 at 2:48 AM Mike Dewhirst <
mi...@dewhirst.com.au
> <mailto:
mi...@dewhirst.com.au>> wrote:
>
> I'm getting hundreds of Invalid HTTP_HOST header errors and need
> to avoid having them emailed to ADMINS. My ISP has a limit on the
> number of messages which can be sent per hour and occasionally
> that gets exceeded and he complains the site is jamming his
> queues. While that is a more or less jocular response I still need
> to invest my time looking at these stupid emails.
>
> My ALLOWED_HOSTS setting is locked down to only the correct
> hostname and no IP addresses. All the errors are attempts to
> access well known scripts which don't exist on the server or '/'
>
> I am reasonably certain the answer to the problem sits somewhere
> in the logging configuration but that's not trivial - for me anyway.
>
> I'm having trouble deciphering
>
https://docs.djangoproject.com/en/1.11/topics/logging/#examples
>
> Can anyone please point me to a worked example which addresses this?
>
> Thanks
>
> Mike
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
django-users...@googlegroups.com
> --
> You received this message because you are subscribed to the Google
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
django-users...@googlegroups.com