Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable django.security.DisallowedHost from logging #4791

Closed
humitos opened this issue Oct 22, 2018 · 1 comment · Fixed by #4879
Closed

Disable django.security.DisallowedHost from logging #4791

humitos opened this issue Oct 22, 2018 · 1 comment · Fixed by #4879
Labels
Improvement Minor improvement to code
Milestone

Comments

@humitos
Copy link
Member

humitos commented Oct 22, 2018

We have properly configured our ALLOWED_HOST setting and it's blocking some of these attacks properly. Although, this is spamming Sentry with many error logs.

Since this is not an error and I think we don't really need to take any kind of action, we should disable this from the logging as mentioned here:

https://docs.djangoproject.com/en/1.11/topics/logging/#django-security

Sentry query: https://sentry.io/read-the-docs/readthedocs-org/?query=logger%3A%22django.security.DisallowedHost%22

@humitos humitos added the Improvement Minor improvement to code label Oct 22, 2018
@humitos humitos added this to the Cleanup milestone Oct 22, 2018
@dojutsu-user
Copy link
Member

@humitos
I would like to work on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Minor improvement to code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants