[wp-hackers] WP Blacklist Clean
Mark Jaquith
mark.wordpress at txfx.net
Sat Nov 6 16:58:23 UTC 2004
Of course. I wasn't proposing it as something that is done
automatically, but something that could be done manually, sort of like
Kitten's retrospaminator. It should be seen as a maintainence utility
only called at the user's request. On my spam words list of over 3000
words, it took about 8 seconds to run and prune 500 redundant entries.
Also, a point of clarification, as some were confused... This utility
cleans your spam words list, and has nothing to do with WP-Blacklist. I
have renamed the script to reflect that. Also, the script should now be
run from /wp-admin/
>> <mark.wordpress at txfx.net> wrote:
>> > I've often noticed that many blacklists contain redundant
>> entries. For
>> > example:
>> > -casino
>> > casino-
>> > online-casino
>> > vegas-casino-online
>> > online-casino.com
>> > blackjack-casino.com
>> > casino-magic
>> >
>> > All those entries could be taken care of by "-casino" and "casino-"
>> >
>> > So I wrote a script that eliminates any redundant entries, as well
>> as
>> > eliminating exact duplicates and sorting the blacklist
>> alphabetically.
>> >
>> > http://txfx.net/files/wordpress_hacks/wp-blacklist-clean.phps
>> >
>> > I'm no PHP expert, so I'm sure this is a horridly inefficient
>> script... but
>> > it seems to work for me (removed over 500 redundant entries on my
>> > blacklist). Could some of you more PHP-savvy hackers give it a
>> look-see?
>> >
>> > Because of its recursive nature, it takes quite a few seconds to
>> run on big
>> > blacklists, and shouldn't be automatic... but maybe this could be
>> added as a
>> > manual option, right below Kitten's retrospam link. "Clean and sort
>> > blacklist."
>> >
More information about the hackers
mailing list