browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

My ghosts like to travel

Posted by on August 18, 2006

Ok, the shoutbox is back again. I found some updated code to add an IP blocking list to Jalenack’s shoutbox. You can even publish a feed containing your blocked spammer IPs, so other people can synchronize their lists with yours, or you can synchronize your list with theirs.

The server gonad.org is hosted on blocks using file() to open URLs, so I had to change:

$lines = file($feeds[$i]);

to:

$cmd = "wget ".$feeds[$i]." -q -O -";
$lines = explode( "\n", s h e l l _ e x e c( $cmd ));

in jal_shout_spam_sync().

If you’re wondering why s h e l l _ e x e c() is spaced out like that, read the end of this. Google saved me from ripping my hair out.

Sleep.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>