I have a droplet running on Digital Ocean. I am using gunicorn and nginx with Django 1.10.
The web application has been running fine, but I have captured some DisallowedHost exceptions in my logs.
My ALLOWED_HOSTS is:
'11.11.11.11,.mydomainname.com'
The values are the droplet IP address and my public domain name respectively.
In the last few days I have seen the following in my log:
Invalid HTTP_HOST header: '1389508397'. You may need to add '1389508397' to ALLOWED_HOSTS.
Invalid HTTP_HOST header: 'www.google.com'. You may need to add 'www.google.com' to ALLOWED_HOSTS.
Invalid HTTP_HOST header: 'xxnet-403.appspot.com'. You may need to add 'xxnet-403.appspot.com' to ALLOWED_HOSTS.
Invalid HTTP_HOST header: '323.good-04y.appspot.com'. You may need to add '323.good-04y.appspot.com' to ALLOWED_HOSTS.