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, 134 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 - Spam/Porn in News Comments [ ]
 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
tkevans
Nuke Soldier
Nuke Soldier


Joined: Jul 14, 2003
Posts: 29

Location: Baltimore, MD, USA

PostPosted: Wed May 11, 2005 11:35 am Reply with quoteBack to top

I noted this week a couple of thousand spam/porn comments attached to news articles on my 7.4 site. Turning on comment moderation did not seem to stop additional such postings. While I've reluctantly taken away anonymous-posting, and emptied out the database table to clear this stuff, what else can be done?
Find all posts by tkevansView user's profileSend private messageVisit poster's websiteAIM Address
networkboy
Nuke Soldier
Nuke Soldier


Joined: Sep 03, 2004
Posts: 14


PostPosted: Thu May 12, 2005 10:10 pm Reply with quoteBack to top

I had the same problem, and had to do the same thing to stop it Sad
-nB
Find all posts by networkboyView user's profileSend private message
aenigma
Nuke Soldier
Nuke Soldier


Joined: May 27, 2003
Posts: 34

Location: Somewhere in time...

PostPosted: Thu May 12, 2005 10:32 pm Reply with quoteBack to top

I made a little patch so that is neeeded to insert the security code to post a comment.
I'm using on my site and it's functioning and also anonymous can post.
I Will release the instructions in this WeekEnd on my site at http://www.thekey.it

The site is in italian, but I will release instructions in english too.

_________________
Eremita Solitario
http://www.thekey.it
Find all posts by aenigmaView user's profileSend private messageVisit poster's website
tkevans
Nuke Soldier
Nuke Soldier


Joined: Jul 14, 2003
Posts: 29

Location: Baltimore, MD, USA

PostPosted: Fri May 13, 2005 4:27 am Reply with quoteBack to top

Quote:
I made a little patch so that is neeeded to insert the security code to post a comment.


Thanks for your reply. How can you require security code if anonymous is posting?[/quote]
Find all posts by tkevansView user's profileSend private messageVisit poster's websiteAIM Address
elr
Captain
Captain


Joined: Mar 09, 2004
Posts: 329


PostPosted: Fri May 13, 2005 4:44 am Reply with quoteBack to top

aenigma,

I am interested in seeing what you did too. I've also wanted to open my articles to anon comments but haven't because of the spam issues.
Find all posts by elrView user's profileSend private message
aenigma
Nuke Soldier
Nuke Soldier


Joined: May 27, 2003
Posts: 34

Location: Somewhere in time...

PostPosted: Fri May 13, 2005 1:16 pm Reply with quoteBack to top

I've posted right now what I've done. You can see it active on my site (italian).

If you are interested here is the article :
http://www.thekey.it/article201.html

The article is in italian, but the instruction to download are written also in english so no problem.

Here the download link and details:
http://www.thekey.it/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=51&ttitle=Blocco_Spam_nei_commenti

_________________
Eremita Solitario
http://www.thekey.it
Find all posts by aenigmaView user's profileSend private messageVisit poster's website
KevinE
Private
Private


Joined: Apr 18, 2004
Posts: 46


PostPosted: Sat May 14, 2005 1:54 pm Reply with quoteBack to top

I downloaded you instructions and made the 3 changes as you suggested and it made absolutely no difference on my site what so ever, but my comments are being posted in the review section so it may not.
Find all posts by KevinEView user's profileSend private message
aenigma
Nuke Soldier
Nuke Soldier


Joined: May 27, 2003
Posts: 34

Location: Somewhere in time...

PostPosted: Sun May 15, 2005 12:11 am Reply with quoteBack to top

Which is your site?
The patch is for articles (News module), not for review, I think it's possible to adapt the same patch for review with some changes, but I do not use review so I do not looked at it.

_________________
Eremita Solitario
http://www.thekey.it
Find all posts by aenigmaView user's profileSend private messageVisit poster's website
KevinE
Private
Private


Joined: Apr 18, 2004
Posts: 46


PostPosted: Sun May 15, 2005 5:21 am Reply with quoteBack to top

That's what I was afraid of that the patch was for news comments only. Hopefully some code wizard can work the code offer to make it work with comments for reviews.

Does anyone know what ill effect it might have if I just dropped the comment table from my data base?
Find all posts by KevinEView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Sun May 15, 2005 8:55 am Reply with quoteBack to top

Why not just disable comments from your Preferences? Dropping the table seems a little extreme

_________________
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
aenigma
Nuke Soldier
Nuke Soldier


Joined: May 27, 2003
Posts: 34

Location: Somewhere in time...

PostPosted: Mon May 16, 2005 12:09 am Reply with quoteBack to top

KevinE wrote:
Hopefully some code wizard can work the code offer to make it work with comments for reviews.


If I got enough time I will try do to it. But I connot grant anything.
Find all posts by aenigmaView user's profileSend private messageVisit poster's website
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Mon May 16, 2005 3:16 am Reply with quoteBack to top

Here is a fix to include security code in Reviews comments (based on aenigma's News comments antispam fix)

in modules/Reviews/index.php find in postcomment function (around line 484 in my version):

Code:
    <input type=hidden name=rop value=savecomment>
    <input type=submit value=Submit>


and change to:

Code:
    <input type=hidden name=rop value=savecomment>";
   /* Start Patch for security code by aeniGma - http://www.thekey.it */
   mt_srand ((double)microtime()*1000000);
   $maxran = 1000000;
   $random_num = mt_rand(0, $maxran);
   echo "<br><font class=\"option\"><b>Type security-code:</b></font><br>";
   echo "<img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br>";
   echo "<input type=\"text\" NAME=\"gfx_check\" SIZE=\"7\" MAXLENGTH=\"6\"><br>";
   echo "<input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><br>";
   /* End Patch for security code */   
    echo "<input type=submit value=Submit>


Next in modules/Reviews/index.php find in switch list around line 938:

Code:
   case "savecomment":
   savecomment($xanonpost, $uname, $id, $score, $comments);
   break;


and change to:

Code:
   case "savecomment":
   $datekey = date("F j");
   $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
   $code = substr($rcode, 2, 6);
   if ($code != $gfx_check) {
      include ("header.php");
      echo "security code was incorrect"._GOBACK."";
      include ("footer.php");
   } else {
      savecomment($xanonpost, $uname, $id, $score, $comments);
   }   
   break;


I have just tested it on a PHP-Nuke 7.5 site and it seems to work fine.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
Slackervaara
Captain
Captain


Joined: Sep 13, 2003
Posts: 355


PostPosted: Mon May 16, 2005 7:42 am Reply with quoteBack to top

I have had BIG problems with spam in news comments in PHP-Nuke 7.2. I tried to modify comments.php, BUT the security code does not show up, but instead only the text security code.

I have stopped the spammer, which seems to be some kind of robot that change IP-address between each post almost. The spamming was stopped by disallowing anonymous posting.
Find all posts by SlackervaaraView user's profileSend private message
KevinE
Private
Private


Joined: Apr 18, 2004
Posts: 46


PostPosted: Mon May 16, 2005 3:31 pm Reply with quoteBack to top

I made the changes as you suggested and I can still post anonymously to all of the reviews. it seemed to make no difference on Nuke 7.3. But thanks for the effort. Maybe dropping the table is the way to go after all?
Find all posts by KevinEView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12482


PostPosted: Mon May 16, 2005 4:28 pm Reply with quoteBack to top

In 7.7, comments in Reviews can be disabled now using the Preferences global setting

_________________
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 - TUTTISU E-COMMERCE http://www.tuttisu.it
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.598 Seconds - 143 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::