Question

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?

Était-ce utile?

La solution

The docs do say:

List of compiled regular expression objects

Try:

IGNORABLE_404_URLS = (
    re.compile(r'^wp-login$'),
)
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top