WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums


blocking spam
problems banning I.Ps

Version: 1.11
printPrint


blocking spam
rem
Beginner

Usergroup: Member
Joined: Feb 02, 2006
Total Topics: 1
Total Posts: 2
Posted 02/02/06 - 04:50 AM:
quote post
#1
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 Posts: 166
Posted 02/02/06 - 05:47 AM:
quote post
#2
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 Posts: 2
Posted 03/18/06 - 09:18 AM:
quote post
#3
Why don't you make approval request?

_____________________
Real estate content management system (CMS). Real estate website design. Real estate software. Real estate website development.
rem
Beginner

Usergroup: Member
Joined: Feb 02, 2006
Total Topics: 1
Total Posts: 2
Posted 03/18/06 - 01:25 PM:
quote post
#4
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 Posts: 2
Posted 03/19/06 - 12:22 AM:
quote post
#5
Oh, really, that's not good.
Then you need some antispam for sure smiling face

_____________________
Real estate content management system (CMS). Real estate website design. Real estate software. Real estate website development.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 03/22/06 - 06:28 PM:
quote post
#6
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).

Edited by Paul on 03/22/06 - 06:30 PM

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Master m
Beginner

Usergroup: Member
Joined: Mar 23, 2006
Total Topics: 1
Total Posts: 2
Posted 03/23/06 - 11:05 PM:
quote post
#7
EDIT

delete by Master m



Edited by Master m on 03/24/06 - 02:49 AM
coehler
Beginner

Usergroup: Member
Joined: Apr 10, 2006
Total Topics: 0
Total Posts: 1
Posted 04/10/06 - 07:44 AM:
quote post
#8
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 04/12/06 - 06:47 AM:
quote post
#9
The letters change every few hours.

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
sockeye
Beginner

Usergroup: Member
Joined: Mar 22, 2007
Total Topics: 0
Total Posts: 1
Posted 03/22/07 - 06:53 AM:
quote post
#10
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 56
Total Posts: 5844
Posted 03/22/07 - 02:56 PM:
quote post
#11
$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]);

Edited by Paul on 03/22/07 - 03:04 PM

_____________________
"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.