2010-12-22, 02:09 AM
Hi all,
I've been having a lot of trouble with spammers and have installed ZB Block on my forum. I've got it working by calling the script from each page I want protected but I was wondering if some one could suggest a simpler install method. Is there a script that is called early in the page rendering process that is common to every page? For example, to use the script in SMF it requires one line to be added to settings.php. AFAIK MyBB caches settings.php so it won't work in this case but I'm looking for something similar.
Thanks,
Matt
edit: I think global.php might be my best bet. I'll let you know how I go.
ZB Block is working well with the code to call it added to global.php. I changed the suggested code from:
to:
and so far the script has blocked nearly 100 assorted spam bots and nasties from sapping bandwidth. I haven't observed any ill affects yet but I'll keep you posted.
I've been having a lot of trouble with spammers and have installed ZB Block on my forum. I've got it working by calling the script from each page I want protected but I was wondering if some one could suggest a simpler install method. Is there a script that is called early in the page rendering process that is common to every page? For example, to use the script in SMF it requires one line to be added to settings.php. AFAIK MyBB caches settings.php so it won't work in this case but I'm looking for something similar.
Thanks,
Matt
edit: I think global.php might be my best bet. I'll let you know how I go.
ZB Block is working well with the code to call it added to global.php. I changed the suggested code from:
<?php include('/home/my_home_folder/public_html/zbblock/zbblock.php');?>
to:
<?php require_once('/home/my_home_folder/public_html/zbblock/zbblock.php');?>
and so far the script has blocked nearly 100 assorted spam bots and nasties from sapping bandwidth. I haven't observed any ill affects yet but I'll keep you posted.