[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] Block binaries

Andrew Cranson schrieb am 2004-02-04:

> Is it possible to block binary groups in leafnode?

You can try to use only_groups_pcre to exclude them (it's a bit tricky
and you need to know about PCRE lookahead and lookbehind assertions).


only_groups_pcre = ^\w+(\.\w+(?<!binaries|binary))*$

WARNING: Choose your PCRE carefully. The \. in the parentheses above
happens to also keep the number of combinations somewhat limited, it
serves as some anchor. If your PCRE contains something like unlimited by
unlimited, along these lines:

(subpattern*)*   (doesn't matter if you use + or *)

you can easily engage your shiny new 3 GHz Intel Xeon for hours. You may be able
to limit your PCRE rules a bit by prohibiting backtracking with atomic
grouping. See the PCRE documentation (man pcrepattern or man pcre or man
7 pcre).

Matthias Andree

Encrypt your mail: my GnuPG key ID is 0x052E7D95
leafnode-list mailing list