Re: Spammed with 'Invalid HTTP_HOST header' messages

2014-02-26 Thread Zac Audette
I am running 1.6 and this also emails me the errors. I was also assuming by fixed they meant that this is no longer an issue but that does not seem to be the case. On Friday, December 6, 2013 2:55:04 PM UTC-5, Jon Dufresne wrote: > > > Can you not add a filter to your logger handler? > http://st

Re: Spammed with 'Invalid HTTP_HOST header' messages

2013-12-06 Thread Jon Dufresne
> Can you not add a filter to your logger handler? > http://stackoverflow.com/a/19534738 I will give this a shot. But what I don't understand is that the post claims that this is fixed in newer versions. I am using version 1.6. By "fixed" does he simply mean 500 error is now a 400 error? Or is h

Re: Spammed with 'Invalid HTTP_HOST header' messages

2013-12-06 Thread Zach Borboa
Can you not add a filter to your logger handler? http://stackoverflow.com/a/19534738 On Friday, December 6, 2013 8:28:37 AM UTC-8, Jon Dufresne wrote: > > On Fri, Dec 6, 2013 at 7:47 AM, Zach Borboa > > wrote: > > SuspiciousOperation should now return a 400 error [1]. > > It is true, the res

Re: Spammed with 'Invalid HTTP_HOST header' messages

2013-12-06 Thread Bill Freeman
Simple is in the eye of the beholder. Unless someone we haven't heard from comes up with pre-existing switches or sub filtering attachment points, I see two possibilities. 1. Patch or monkey patch the code that decides to send the e-mail to check for this case to omit the e-mail. This has to be

Re: Spammed with 'Invalid HTTP_HOST header' messages

2013-12-06 Thread Jon Dufresne
On Fri, Dec 6, 2013 at 7:47 AM, Zach Borboa wrote: > SuspiciousOperation should now return a 400 error [1]. It is true, the response is a 400 Bad Request error, but I still receive emails going to my admins/managers email account. I thought 400 errors shouldn't be mailed out. I would prefer to av

Re: Spammed with 'Invalid HTTP_HOST header' messages

2013-12-06 Thread Zach Borboa
SuspiciousOperation should now return a 400 error [1]. You could also use something like Sentry [2] or filter these messages. [1] https://code.djangoproject.com/ticket/19866 [2] https://github.com/getsentry/sentry [3] http://stackoverflow.com/a/19534738 On Thursday, December 5, 2013 11:21:33 AM

Spammed with 'Invalid HTTP_HOST header' messages

2013-12-05 Thread Jon Dufresne
I am running Django 1.6. I receive a lot of false positive errors from my Django application when accessed with an invalid HTTP_HOST. I have verified that these are in fact HTTP_HOST values that I am not interested in. So I *do* want to return an error to the user. However, it doesn't help me as a