0

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?

teewuane
  • 5,524
  • 5
  • 37
  • 43

1 Answers1

2

The docs do say:

List of compiled regular expression objects

Try:

IGNORABLE_404_URLS = (
    re.compile(r'^wp-login$'),
)
Sam Mussmann
  • 5,883
  • 2
  • 29
  • 43
  • Thank you! I also just noticed that SEND_BROKEN_LINK_EMAILS was also deprecated in 1.6. I'm guessing this was the main issue but I removed the SEND_BROKEN_LINK_EMAILS setting anyways. – teewuane Mar 07 '14 at 20:14