[wp-hackers] WP Blacklist Clean

Robert Deaton false.hopes at gmail.com
Fri Nov 5 21:39:57 UTC 2004


Well, the problem with such a PHP script is it takes a while to
execute because of the way it searches through and removes duplicates.


On Fri, 5 Nov 2004 08:46:30 -0500, Mark Shields <laebshade at gmail.com> wrote:
> 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
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> 


-- 
--Robert Deaton
http://false-hopes.com/
A proud Linux, Firefox, and WordPress user.
Linux is not an operating system, its a way of life.



More information about the hackers mailing list