Webmastersite.net
Register Log In

blocking spam
problems banning I.Ps

Comments on blocking spam

rem
Beginner

Usergroup: Member
Joined: Feb 02, 2006

Total Topics: 1
Total Comments: 2
rem
Posted Feb 02, 2006 - 4:50 AM:

Hi - great script but am getting about 20 spam posts a day
The I.P blocking does not work for some reasons - any ideas?
zippo
Forum Regular

Usergroup: Customer
Joined: Jan 11, 2006

Total Topics: 48
Total Comments: 166
zippo
Posted Feb 02, 2006 - 5:47 AM:

If you are using a *nix host and can use .htaccess you might want to consider blocking the offending IPs that way.
Yaroslav
Beginner

Usergroup: Member
Joined: Mar 18, 2006

Total Topics: 0
Total Comments: 2
Posted Mar 18, 2006 - 9:18 AM:

Why don't you make approval request?
rem
Beginner

Usergroup: Member
Joined: Feb 02, 2006

Total Topics: 1
Total Comments: 2
rem
Posted Mar 18, 2006 - 1:25 PM:

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
Yaroslav
Beginner

Usergroup: Member
Joined: Mar 18, 2006

Total Topics: 0
Total Comments: 2
Posted Mar 19, 2006 - 12:22 AM:

Oh, really, that's not good.
Then you need some antispam for sure smiling face
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Mar 22, 2006 - 6:28 PM:

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).
Master m
Beginner

Usergroup: Member
Joined: Mar 23, 2006

Total Topics: 1
Total Comments: 2
Posted Mar 23, 2006 - 11:05 PM:

EDIT

delete by Master m

coehler
Beginner

Usergroup: Member
Joined: Apr 10, 2006

Total Topics: 0
Total Comments: 1
coehler
Posted Apr 10, 2006 - 7:44 AM:

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.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Apr 12, 2006 - 6:47 AM:

The letters change every few hours.
sockeye
Beginner

Usergroup: Member
Joined: Mar 22, 2007

Total Topics: 0
Total Comments: 1
sockeye
#10 - Quote - Permalink
Posted Mar 22, 2007 - 6:53 AM:

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!

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
#11 - Quote - Permalink
Posted Mar 22, 2007 - 2:56 PM:

$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]);
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.