[wp-hackers] WP Blacklist Clean

Mark Shields laebshade at gmail.com
Fri Nov 5 13:46:30 UTC 2004


I used a free command line program called cmsort
(http://www.chmaas.handshake.de/delphi/freeware/cmsort/cmsort.htm). 
Was very easy to use, but I do like the idea of a PHP script that has
the possibility to be integrated into WP and automatically sort and
remove duplicates.


On Thu, 04 Nov 2004 08:20:01 -0500, Mark Jaquith
<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."
>  
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> 
> 
> 


-- 
- Mark Shields



More information about the hackers mailing list