Re: How to filter 'Invalid HTTP_HOST header ...' errors

2019-03-24 Thread Mike Dewhirst
On 24/03/2019 9:28 pm, Jani Tiainen wrote: Hi. Usually HTTP_HOST should be generated from your frontend http server (nginx, apache or similar) and it shouldn't change randomly. If it does it's indication that someone actually had bypassed your http server and managed to call django directly.

Re: How to filter 'Invalid HTTP_HOST header ...' errors

2019-03-24 Thread Jani Tiainen
Hi. Usually HTTP_HOST should be generated from your frontend http server (nginx, apache or similar) and it shouldn't change randomly. If it does it's indication that someone actually had bypassed your http server and managed to call django directly. On Sun, Mar 24, 2019 at 2:48 AM Mike Dewhirst

How to filter 'Invalid HTTP_HOST header ...' errors

2019-03-23 Thread Mike Dewhirst
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