IP and URL Blocking hack for Shoutbox

December 16th, 2004

This post is no longer relevant and is available only for archive purposes.

Well my site was getting some Spam in the shoutbox, so i decided to write a small hack to block the spammers.

Here i am sharing it with other Webfroot Shoutbox users who could be facing the same problem. To install it just download the zip file and unzip it into your shoutbox directory, you need to edit two variables on top of shoutbox.php to reflect your web environment.

$ipbanfile = "/home/mysite/public_html/shoutbox/ip.txt";
$urlbanfile = "/home/mysite/public_html/shoutbox/url.txt";

These two variables should point to IP.txt and URL.txt file respectively or this will not work. You may also need to chmod IP.txt and URL.txt to atleast mode 766.

Thats it. Your admin section will now include a link to ban a ’shout’, remember this script will ban both the IP and the URL assosiated with the shout.

Happy Shouting.

PS: Remember its purely alpha code i call it version 0.01. So reply if you have any problems with the code or want something more. Tested with ver 2.37 of shoutbox.

PS2: The download has been removed because i am not using shoutbox anymore and they have updated their code which now includes this functionality.

Â

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Fark
  • Furl
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Spurl

Entry Filed under: Script Hacks

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

July 2008
M T W T F S S
« Feb    
 123456
78910111213
14151617181920
21222324252627
28293031  

Most Recent Posts



Join the Blue Ribbon Online Free Speech Campaign
Join the Blue Ribbon Online Free Speech Campaign!