| 24 | |
| 25 | === Regular Expressions for IP === |
| 26 | |
| 27 | The [source:plugins/0.12/spam-filter-captcha/tracspamfilter/filters/ip_regex.py ip_regex] filter reads a list of regular expressions from a wiki page named “BadIP”, each regular expression being on a separate line inside the first code block on the page, using the [http://docs.python.org/lib/re-syntax.html Python syntax] for regular expressions. |
| 28 | |
| 29 | If any of those regular expressions matches the submitters IP, the submission will be rejected. |
| 30 | |
| 31 | Regular expressions are much too powerful for the simple task of matching an IP or IP range, but to keep things simple for users the design is equal to the content based regular expressions. You simple can specify full IPV4 |
| 32 | addresses even if the dot has special meaning, as the match will work correctly. Only when matching partial addresses more care is needed. |