Just released WSN Guest's first update in almost 3 years. It now works with PHP 5 and MySQL 5, plus it has the security image to prevent spam if you have GD (which you probably do if you have PHP 4.3+).
Other than that I didn't change anything except a settings template error, and I added the powered by text back (anyone who doesn't want it can stick with being spammed in the previous version).
I have added this update but get the same four letters every time with a change in the graphic. is this the way this is supposed to work, I would expect that the letters would continually change as well as the graphic that holds them.
$HTTP vars have been off by default since PHP 4.1, so you need to use $_SERVER and $_ENV.
Your first two steps don't apply to recent versions (except in the admin panel where it doesn't really matter), so your change boils down to adding $ipbanarray[$i] = trim($ipbanarray[$i]);
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on blocking spam
Beginner
Usergroup: Member
Joined: Feb 02, 2006
Total Topics: 1
Total Comments: 2
Hi - great script but am getting about 20 spam posts a day
The I.P blocking does not work for some reasons - any ideas?
Forum Regular
Usergroup: Customer
Joined: Jan 11, 2006
Total Topics: 48
Total Comments: 166
If you are using a *nix host and can use .htaccess you might want to consider blocking the offending IPs that way.
Beginner
Usergroup: Member
Joined: Mar 18, 2006
Total Topics: 0
Total Comments: 2
Why don't you make approval request?
Beginner
Usergroup: Member
Joined: Feb 02, 2006
Total Topics: 1
Total Comments: 2
i have it set to approval request - but I now have to edit some 100 spam postings every day to find the 1 or 2 genuine ones
Beginner
Usergroup: Member
Joined: Mar 18, 2006
Total Topics: 0
Total Comments: 2
Oh, really, that's not good.
Then you need some antispam for sure
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Just released WSN Guest's first update in almost 3 years. It now works with PHP 5 and MySQL 5, plus it has the security image to prevent spam if you have GD (which you probably do if you have PHP 4.3+).
Other than that I didn't change anything except a settings template error, and I added the powered by text back (anyone who doesn't want it can stick with being spammed in the previous version).
Beginner
Usergroup: Member
Joined: Mar 24, 2006
Total Topics: 1
Total Comments: 2
EDIT
delete by Master m
Beginner
Usergroup: Member
Joined: Apr 10, 2006
Total Topics: 0
Total Comments: 1
I have added this update but get the same four letters every time with a change in the graphic. is this the way this is supposed to work, I would expect that the letters would continually change as well as the graphic that holds them.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The letters change every few hours.
Beginner
Usergroup: Member
Joined: Mar 22, 2007
Total Topics: 0
Total Comments: 1
I had the same problem. The IP ban doesn't seem to work as coded, at least in the version I had. Here's what I did.
In the start.php and admin/adminstart.php files find the corresponding lines of code and replace with the code below.
FIND
$ipbanarray = explode('/n', $settings->bannedips);
REPLACE
$ipbanarray = explode("/n", $settings->bannedips);
(I think the error above is fixed in the current dist'n)
FIND
$visitor = $REMOTE_ADDR;
REPLACE
$visitor = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ? $HTTP_ENV_VARS['REMOTE_ADDR'] : $REMOTE_ADDR );
FIND
if ($ipbanarray[$i] != '')
REPLACE
$ipbanarray[$i] = trim($ipbanarray[$i]);
if ($ipbanarray[$i] != '')
That should do it!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
$HTTP vars have been off by default since PHP 4.1, so you need to use $_SERVER and $_ENV.
Your first two steps don't apply to recent versions (except in the admin panel where it doesn't really matter), so your change boils down to adding
$ipbanarray[$i] = trim($ipbanarray[$i]);