Hacking attempts

30 views
Skip to first unread message

Mike Dewhirst

unread,
Jan 3, 2019, 7:10:10 PM1/3/19
to Django users
I'm no expert and I suspect things are working as designed but I'm
getting multiple admin emails from a production site reporting attempts
to access wsgi.py

So my question is: Can I change the name of wsgi.py so the hackers get
401 errors and maybe go away?

The emails have subject lines like ...

[Django] ERROR (EXTERNAL IP): Invalid HTTP_HOST header:
'43.211.128.177'. You may need to add u'43.211.128.177' to ALLOWED_HOSTS.

ALLOWED_HOSTS is tied down to exactly the website domain.

Thanks

Mike

Ansh Srivastava

unread,
Jan 4, 2019, 12:52:30 AM1/4/19
to django...@googlegroups.com
Yes! You can do that. You've to just hop over to the wsgi.py setting part.



Mailtrack Sender notified by
Mailtrack 04/01/19, 11:20:50

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9bfa0c95-68a9-170c-fb39-3888d376f98b%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages