You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 46 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - please help me my forums getting spammed [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
combatsimulation
Nuke Soldier
Nuke Soldier


Joined: Aug 07, 2005
Posts: 12

Location: Revere, Massachusetts US

PostPosted: Sat Sep 09, 2006 2:16 pm Reply with quoteBack to top

the last few weeks my forums have been getting spammed by people advertising vitamins and drugs and stuff how do i stop them?

please help me its very annoying.

thanks in advance

george

_________________
Image
Find all posts by combatsimulationView user's profileSend private messageSend e-mail
Bl@ster
Nuke Cadet
Nuke Cadet


Joined: Sep 02, 2006
Posts: 3


PostPosted: Sat Sep 09, 2006 4:29 pm Reply with quoteBack to top

Are they registering and then doing it? or as annonymous? if as annonymous, then simply change permission.
Find all posts by Bl@sterView user's profileSend private message
combatsimulation
Nuke Soldier
Nuke Soldier


Joined: Aug 07, 2005
Posts: 12

Location: Revere, Massachusetts US

PostPosted: Sat Sep 09, 2006 4:37 pm Reply with quoteBack to top

well at first it was as anonymous as i didn't set the permissions on my site as it hasn't been online that long but then i set the permissions to where users have to register to post and now their registering names and doing it.

it's pretty lame.

_________________
Image
Find all posts by combatsimulationView user's profileSend private messageSend e-mail
Bl@ster
Nuke Cadet
Nuke Cadet


Joined: Sep 02, 2006
Posts: 3


PostPosted: Sat Sep 09, 2006 4:53 pm Reply with quoteBack to top

You know this may sound wierd, but just make them a spam forum and ask them to spam that. loool Just see if that works lol

You could also set permissions manually by giving users a special ranks which would allow them to post in the forums.
Find all posts by Bl@sterView user's profileSend private message
Prophet
Captain
Captain


Joined: Mar 14, 2004
Posts: 422

Location: Florida, USA, Earth, Space

PostPosted: Sat Sep 09, 2006 5:03 pm Reply with quoteBack to top

Grab their ip addresses and ban them from the website.

_________________
- Prophet
Get the Last Visit module (and others modules I designed) from my website! FREE! http://jasonlau.biz

http://DotCom.Name
Find all posts by ProphetView user's profileSend private messageVisit poster's websiteAIM Address
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Sun Sep 10, 2006 4:40 am Reply with quoteBack to top

You should also active the security codes login.

It's specifically designed to stop bots from creating accounts and spamming your site

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
athens101
Sergeant
Sergeant


Joined: Jul 11, 2004
Posts: 104

Location: Athens

PostPosted: Sun Sep 10, 2006 8:51 am Reply with quoteBack to top

We keep a guest only forum and that cuts down on a lot of spam. Granted every morning I have to nix about 2-3 spam post but it's not that bad. Trying to ban the IP's is a waste of time since the given IP is spoofed.
Find all posts by athens101View user's profileSend private messageVisit poster's website
Prophet
Captain
Captain


Joined: Mar 14, 2004
Posts: 422

Location: Florida, USA, Earth, Space

PostPosted: Sat Sep 23, 2006 4:16 am Reply with quoteBack to top

I've found it very effective to ban spammers by a variety of methods.
Here is a script I wrote (checkspammer.php) which works well for most people for resolving spam issues.

Edit the script to suit your needs, save it to your root nuke directory as checkspammer.php, then include it in your header someplace.

Code:
include('checkspammer.php');



Contents of checkspammer.php ....
Code:
<?php

//
// checkspammer.php ©2005 JasonLau.biz
// License located at http://jasonlau.biz/?mode=software_license
//

global $admin, $adminmail, $nukeurl, $sitename;

//
// add common spam words or phrases (seperated by comma) to the following array  ...
//

$filter_words = array('rolex','replica','seadweller','submariner','rolex oyster','cheap rolex');

//
// email address to send alert to ...
//

define("EMAIL_ALERT_TO","$adminmail");

//
// Where to forward spammers, e.g., About:Blank or http://sesamestreet.com ...
//

define("SEND_SPAMMER_TO","http://www.FBI.gov");

// End config

global $rop, $file, $db, $prefix, $sid, $comments;
if($rop == "savecomment" || $file=="comments"){
if(!$_SERVER['REQUEST_METHOD'] == "POST" || !isset($_SERVER['HTTP_USER_AGENT'])){
$is_spammer = "true";
}
}

$badcookie = $_COOKIE["Spammer"];
// The next line is specifically for the news comments. Remove comment slashes to use for news module.
// if (($_SERVER['REQUEST_METHOD'] == "POST" && !is_admin($admin)) && ($rop == "savecomment" || $file=="comments")) {
// The next line is for general use. Comment out when using the previous line for news module.
  if ($_SERVER['REQUEST_METHOD'] == "POST" && !is_admin($admin)) {
if(!isset($_SERVER['HTTP_USER_AGENT'])){
$is_spammer = "true";}
        foreach($_POST as $stuff){
      foreach($filter_words as $filter){
      if(eregi($filter,$stuff)){
      $comment = "no one likes a spammer";
      $comment = base64_encode($comment);
      setcookie("Spammer", $comment, time()+60*60*24*365);
      $is_spammer = "true";
      $trigger = "$filter";
      }
    }
  }
}

if(($is_spammer || $badcookie) && (!is_admin($admin))){
        unset($_POST);
      unset($sid);   
        unset($comments);      
      $ip = $_SERVER["REMOTE_ADDR"];
      $useragent = $_SERVER["HTTP_USER_AGENT"];
        $date = date("M d, Y");
        $time = date("g:i A");
      $text = "Spammer";
      
      // Add to admin ip block if exists
      if(file_exists("admin/modules/ipban.php")){
      $thedate = date("Y-m-d");
      $reason = "Comments spammer";
      $db->sql_query("INSERT INTO ".$prefix."_banned_ip VALUES (NULL, '$ip', '$reason', '$thedate')");
      }
      
      // Add to Sentinel if exists
      if(file_exists("admin/modules/sentinel.php")){   
$db->sql_query("insert into ".$prefix."_nsnst_ips (ip_addr, username, user_agent, date, notes, remote_addr, expires) values ('$ip', '$username', '$useragent', '$date', '$text', '$ip', '0')");
        }
      
      // Send email alert and redirect spammer
      if(!$badcookie){
      $message = "A potential spammer has been blocked at $nukeurl using the following filter word - $trigger\n\nIP: $ip - Query this IP at http://whois.sc/$ip\n\nUserAgent: $useragent\n\nDate: $date\n\nTime: $time";
      } else {
      $message = "A previously blocked spammer has been blocked again at $nukeurl via cookie ID.\n\nIP: $ip - Query this IP at http://whois.sc/$ip\n\nUserAgent: $useragent\n\nDate: $date\n\nTime: $time";
      }
        $subject = "Spammer blocked at $sitename";
      $to = "".EMAIL_ALERT_TO."";
        $from = "$adminmail";
      mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
      Header("Location: ".SEND_SPAMMER_TO."");
      exit;
}      


?>


How it works (in theory):
First, it checks the user's system to see if it has spammed you before.
Next, it checks the user agent to see if the info being posted was actually posted by a bot.
Then, it checks the contents of the post against your filter words to see if any of the filter words exist in the post.
If there is a match an everlasting cookie is placed on the spammer's computer, the user's ip is added to admin's banned ip list and Sentinel (if it exists), the post is cancelled, and the user is redirected away from your website.
Then, it sends an email to you about the incident.


Good luck! Very Happy

_________________
- Prophet
Get the Last Visit module (and others modules I designed) from my website! FREE! http://jasonlau.biz

http://DotCom.Name
Find all posts by ProphetView user's profileSend private messageVisit poster's websiteAIM Address
FionaFirestone
Nuke Cadet
Nuke Cadet


Joined: Sep 23, 2006
Posts: 4


PostPosted: Sat Sep 23, 2006 7:31 am Reply with quoteBack to top

You can ban people from the Forum using the Forum Administration panel (the link at the bottom of the main forum page)

Once you are in there click on 'Ban Control' there you can ban users from the forum. You can ban them using their username, IP address or even their email address. That permanently bans them from the forum but not the rest of the site.

If you want to ban them from the wholw site you need to use a protecter program such as sentinal.

Hope that helps!
Find all posts by FionaFirestoneView user's profileSend private message
GreyEagleFeathers
Nuke Cadet
Nuke Cadet


Joined: Jan 21, 2007
Posts: 4


PostPosted: Sun Jan 21, 2007 2:42 am Reply with quoteBack to top

Prophet wrote:
I've found it very effective to ban spammers by a variety of methods.
Here is a script I wrote (checkspammer.php) which works well for most people for resolving spam issues.

Edit the script to suit your needs, save it to your root nuke directory as checkspammer.php, then include it in your header someplace.

How it works (in theory):
First, it checks the user's system to see if it has spammed you before.
Next, it checks the user agent to see if the info being posted was actually posted by a bot.
Then, it checks the contents of the post against your filter words to see if any of the filter words exist in the post.
If there is a match an everlasting cookie is placed on the spammer's computer, the user's ip is added to admin's banned ip list and Sentinel (if it exists), the post is cancelled, and the user is redirected away from your website.
Then, it sends an email to you about the incident.


Good luck! Very Happy


Thank you for posting this.
Having issues with anonymous news submissions and hoping this will end it. Getting 10-20 submissions a day and is just annoying.
Thanks again, this really looks brilliant!
lol
Can't wait to implement it.
Find all posts by GreyEagleFeathersView user's profileSend private message
Prophet
Captain
Captain


Joined: Mar 14, 2004
Posts: 422

Location: Florida, USA, Earth, Space

PostPosted: Sun Jan 21, 2007 6:41 am Reply with quoteBack to top

You might find a newer version at my website (http://jasonlau.biz).

_________________
- Prophet
Get the Last Visit module (and others modules I designed) from my website! FREE! http://jasonlau.biz

http://DotCom.Name
Find all posts by ProphetView user's profileSend private messageVisit poster's websiteAIM Address
GreyEagleFeathers
Nuke Cadet
Nuke Cadet


Joined: Jan 21, 2007
Posts: 4


PostPosted: Tue Jan 23, 2007 11:28 am Reply with quoteBack to top

The newer file at your site was easier to install and I am sure it will be a great tool to stop the unwanted sex aid links...

But the issue I have with these guys is the anonymous posting of news links that involve penis enhancement drugs and devices.
Is there a way to stop anonymous news submissions by making a guest log in to submit an item?

I know there is something out there because I have been to several phpnuke sites that require you to log in to submit a news item.

Any help would be greatly ppreciated, even if it is a snippet of code.
Thanx
Find all posts by GreyEagleFeathersView user's profileSend private message
Prophet
Captain
Captain


Joined: Mar 14, 2004
Posts: 422

Location: Florida, USA, Earth, Space

PostPosted: Tue Jan 23, 2007 2:19 pm Reply with quoteBack to top

There is a setting to disable anonymous posting in Admin>Preferences.

Just in case, I added the ability to block anonymous posts to the checkspammer.php script. Download a new copy from my website and edit the config section in checkspammer.php. You'll see the new setting.
Very Happy

_________________
- Prophet
Get the Last Visit module (and others modules I designed) from my website! FREE! http://jasonlau.biz

http://DotCom.Name
Find all posts by ProphetView user's profileSend private messageVisit poster's websiteAIM Address
GreyEagleFeathers
Nuke Cadet
Nuke Cadet


Joined: Jan 21, 2007
Posts: 4


PostPosted: Fri Jan 26, 2007 10:58 pm Reply with quoteBack to top

Thank you for your help and for the invite to your site.

Will post the results here.
I really liked the last checkspammer and think it is great!

I am using phpnuke 7.8 and the admin/preference/anonymous post was disabled and yet it still allowed anonymous users to submit news.

Thanks again.
Find all posts by GreyEagleFeathersView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12403


PostPosted: Sat Jan 27, 2007 10:55 pm Reply with quoteBack to top

Make sure the Submit_News module is set to Registered Users only

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.231 Seconds - 273 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::