I am receiving a lot of Invalid HTTP_HOST header messages from my Django web application-
[Django] ERROR: Invalid HTTP_HOST header: 'www.bing.com'.You may need to add u'www.bing.com' to ALLOWED_HOSTS
It comes from known websites (like bing.com, google.com
) as well as very random websites (www2t.biglobe.ne.jp, proxy.me5b.ru
).
The message in the emails is:
No stack trace available
Request repr() unavailable.
I have read other questions about this on other SO questions, like this and this and a nice blog post like this.
But they all seem to indicate that this problem should have been solved in Django 1.6. However, I am running Django 1.6.2 and am still seeing this error. I am using Apache WSGI and the application is hosted on AWS Elasticbeanstalk.
I can probably suppress these alert messages, but should I be expecting them in the first place?