What exactly is an invalid HTTP_HOST header

Posted by rolling stone on Server Fault See other posts from Server Fault or by rolling stone
Published on 2013-10-31T19:49:22Z Indexed on 2013/10/31 21:58 UTC
Read the original article Hit count: 168

Filed under:
|
|
|
|

I've implemented Django's relatively new allowed hosts setting, which is meant to prevent attackers from submitting requests with a fake HTTP Host header.

Since adding that setting, I now get anywhere from 20-100 emails a day notifying me of invalid HTTP_HOST headers. I've copied in an example of a typical error message below.

I'm hosting my site on EC2, and am relatively new to setting up/maintaining a server, so my question is what exactly is happening here, and what is the best way to manage these invalid and I assume malicious requests?

[Django] ERROR: Invalid HTTP_HOST header: 'www.launchastartup.com'.You may need to add u'www.launchastartup.com' to ALLOWED_HOSTS.

© Server Fault or respective owner

Related posts about ubuntu

Related posts about nginx