阅读背景:

在django ALLOWED_HOSTS异常上禁止管理员电子邮件

来源:互联网 

Since the introduction of the ALLOWED_HOSTS setting in django 1.4.4, I get a lot of django error emails to my admin address for exceptions caused by some silly spider looking for vulnerable phpMyAdmin installations or somesuch. These mails are totally valid since the host headers in the spiders' requests are indeed wrong, but I'd rather have django only send me error mails when important things go wrong. Is there a simple method to silence Since the introduction of the ALLOWED_HOSTS set




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: