I am getting hammered by script kiddies. The IGNORABLE_404_URLS setting doesn't seem to be working.

According to the docs, the IGNORABLE_404_URLS is a list of regular expressions and BrokenLinkEmailsMiddleware is required for it to work.

Here is an example of my setting.

IGNORABLE_404_URLS = (
    r'^wp-login$',
)

Am I missing something?

有帮助吗?

解决方案

The docs do say:

List of compiled regular expression objects

Try:

IGNORABLE_404_URLS = (
    re.compile(r'^wp-login$'),
)
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top