Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 [3]   Go Down

Author Topic: Most Simple Comment Spam protection for 1.4.x  (Read 62385 times)

0 Members and 1 Guest are viewing this topic.

pinpoint222

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 77
    • The Rawalpindi Website
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #40 on: November 29, 2006, 02:50:51 pm »

i think static image rotation is possible. But i am not the php coder so will not be able to code that for you. This mod is for static single image confirmation. For dynamic see the other mods/Plugins in the Comment subforums.
Logged

manne

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 27
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #41 on: November 29, 2006, 03:14:28 pm »

okej!

thank you anyway..

 be cool  8)
Logged
/manne

downhiller

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #42 on: December 04, 2006, 02:38:56 pm »

THANKS A LOT  :) :) :) :) I am really greatful for those helpful stuff. Greetings.
Logged

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
Spam Protection only for Guests !??
« Reply #43 on: December 05, 2006, 10:15:59 am »

I'm wondering if there's a php-varible in CPG, that allows to check if you are a "logged in user" or a "not logged in guest" !?

Then it would be possible to force only "not logged in guests" to pass the Spam Protection...

For Example, in Joomla, you could use the variable $is_user in that case -
does CPG offer something similar?

Thanks in advance
 ;)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #44 on: December 05, 2006, 10:29:44 am »

Just answered your identical question on the German support board. Please don't cross-post in the future, as this causes extra moderation effort.
The dev team doesn't recommend to use this mod, as it is based on a security-by-obscurity concept that we don't approve. We recommend using the captcha-mod or captcha-plugin instead, which comes with what you're up to (option to display the spam protection only for non-registered visitors aka guests).
As suggested in the thread subject, this mod is suppossed to be simple. If you need advanced stuff, go for the advanced mods.

Joachim
Logged

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #45 on: December 05, 2006, 10:32:42 am »

OK & Thanks a lot Joachim!
 ::)
Logged

bugeyes

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #46 on: February 25, 2007, 09:36:44 pm »

Want to thank you for providing this.
Seem to have stopped the spam problem I had on my coppermine site.
Logged

Formulanone

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • FormulaNone
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #47 on: March 20, 2007, 11:57:31 am »

Thanks for the help, everyone!

I'll know in a few hours if it works on the bots that say "Very Nice Picture. Do You Mind If I Invade Your Site and Take Your Last Beer?"
Logged

albrum

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #48 on: March 28, 2007, 04:47:24 am »

This fix has been working great for two weeks now, many thanks.
Logged

jult

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #49 on: April 27, 2007, 07:04:23 pm »

Read the instruction in doc Or PDF..and apply the Mod properly. Incase you need help post in this thread
You might want to consider adding a simple plain txt version. I had a VERY hard time adding this piece of code to theme.php because of the strange sources (pdf and doc hardly work for code at all!)

Just consider adding it as txt.
Logged

jult

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #50 on: April 27, 2007, 07:12:12 pm »

Here's the code for theme.php (from Step 2) shortened for speed
Code: [Select]
// HTML template for the form to add comments
$template_add_your_comment = <<<EOT
<form method="post" name="post" action="db_input2.php">
<?php
$msg_author 
"";
$msg_body ="";
$toxic "";
?>

<table align="center" width="{WIDTH}" cellspacing="1" cellpadding="0" class="maintable" bgcolor="#FFFFFF"><tr>
<td width="100%" class="tableh2_compact"><b>{ADD_YOUR_COMMENT}</b></td></tr><tr>
<td colspan="1"><table width="100%" cellpadding="0" cellspacing="0">
<tr><td class="tableb_compact">
{NAME}
</td><td class="tableb_compact">
<input type="text" class="textinput" name="msg_author" size="10" maxlength="20" value="{USER_NAME}" />
</td><td class="tableb_compact">
{COMMENT}
</td><td width="100%" class="tableb_compact">
<input type="text" class="textinput" id="message" name="msg_body" onselect="storeCaret_post(this);" onclick="storeCaret_post(this);" onkeyup="storeCaret_post(this);" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
</td><td class="tableb_compact">
{COMMENT}
</td><td width="100%" class="tableb_compact">
<input type="text" class="textinput" id="message" name="msg_body" maxlength="{MAX_COM_LENGTH}" style="width: 100%;" />
</td>
<td class="tableb_compact">&nbsp;</td></tr></table></td></tr>
<tr><td width="100%" class="tableb_compact">
{SMILIES}
</td></tr>
<tr><td colspan="1"><table width="100%" cellpadding="0" cellspacing="0">
<tr bgcolor="#FFFFFF"><td class="tableb_compact" align="right">
<b>Enter this Code <img src="http://www.yoursite.com/CPG/Themes/classic/images/capimage.jpg"> in the Box</b></font></td>
<td class="tableb_compact" align="left">
<input name="thenum" type="text" id="checkit" > Type Four Letter Code
</font></td><td class="tableb_compact" align="left">
<input type="hidden" name="event" value="comment" />
<input type="hidden" name="pid" value="{PIC_ID}" />
<input type="submit" class="comment_button" name="submit" value="{OK}" />
</td></tr></table></td></tr></table></form>
EOT;
Logged

jult

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #51 on: April 27, 2007, 07:23:19 pm »

Also, why this:

STEP5:Opendb_input2.phpfileandfindtheseLineinitinthebeginningofthefile
require('include/init.inc.php');
require('include/picmgmt.inc.php');
require('include/mailer.inc.php');
require('include/smilies.inc.php');
STEP6: AddthisjustbelowtheselinesSoitbecomes
require('include/init.inc.php');
require('include/picmgmt.inc.php');
require('include/mailer.inc.php');
require('include/smilies.inc.php');
if($_POST['thenum']!='6B38'){
header('Location:done.php');
die();
}
Step7:Savethedb_input2.phpfile.
Step8:Fromthezippedfolder uploaddb_input.phptoyourserverandoverwritethe
previousdb_input.phpfile.
Andthatis it. YourSimplepersonalspamprotection is workingnow.


If it needs to be added to a file that is already in your package, why did you put this in your 'manual'?
Forgive me, but this is just VERY strange and hard to understand this way.

Could you explain the actuall steps needed?
Logged

jult

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #52 on: April 27, 2007, 07:24:01 pm »

Is there a way to edit posts in this forum?
Logged

jult

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #53 on: April 27, 2007, 08:03:41 pm »

OK, I found out there's a nice captcha plugin now, so disregard my previous messages. (Can I delete them?)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #54 on: April 30, 2007, 10:13:06 am »

Is there a way to edit posts in this forum?
No.

so disregard my previous messages. (Can I delete them?)
No.

We don't want users to edit out their postings - they remain as reference. That's the whole point of a support board - postings remain for the benefit of others. That's why you can't edit nor delete your postings. Meta-discussions about forum permissions should not go into an announcement thread though.
Logged

pinpoint222

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 77
    • The Rawalpindi Website
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #55 on: May 02, 2007, 03:30:47 pm »

Also, why this:

STEP5:Opendb_input2.phpfileandfindtheseLineinitinthebeginningofthefile
require('include/init.inc.php');
require('include/picmgmt.inc.php');
require('include/mailer.inc.php');
require('include/smilies.inc.php');
STEP6: AddthisjustbelowtheselinesSoitbecomes
require('include/init.inc.php');
require('include/picmgmt.inc.php');
require('include/mailer.inc.php');
require('include/smilies.inc.php');
if($_POST['thenum']!='6B38'){
header('Location:done.php');
die();
}
Step7:Savethedb_input2.phpfile.
Step8:Fromthezippedfolder uploaddb_input.phptoyourserverandoverwritethe
previousdb_input.phpfile.
Andthatis it. YourSimplepersonalspamprotection is workingnow.


If it needs to be added to a file that is already in your package, why did you put this in your 'manual'?
Forgive me, but this is just VERY strange and hard to understand this way.

Could you explain the actuall steps needed?

I know everything cooked can b thrown into zip folder .The Manual is everything.It has everything even if you do not have the files like db_input.php or db_input2.php You can create it using that manual. If you find any step already been done in the files that came with Zip folder then Just Consider that step done. you do not need to redo something which has already been done...



It is very important to explain how db_input2.php is created and how it is modified at what place. It is very simple if you simply follow the instructions. Explanation of all steps is full so

1-- one can follow it easily as novice
2-- One can/others can trouble shoot easily
3-- one can go back to original CPG system cancelling/suspending any modifications
4-- if future version of CPG files are changed then one must know what might affect working of this MOD


So far for the last 7 months i have found no spam since installation of this MOD and i can say that have not received spam complaints after its version 1.0 was released.

For Text version of Manual COPY all code from .DOC file and paste into a new Blank Notepad file and save that notepad file as "somefilename.txt" and you can have TEXT version of the manual.
« Last Edit: May 02, 2007, 03:41:16 pm by pinpoint222 »
Logged

sudinetip

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Most Simple Comment Spam protection for 1.4.x
« Reply #56 on: July 02, 2007, 12:35:42 am »

I've tons of spams in the comments that I would like to remove. Any programs that I can use to completley remove these comments without destroying my albums?

Thanks!
Logged

Nibbler

  • Guest
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #57 on: July 02, 2007, 01:27:14 am »

Don't ask unrelated questions on a mod thread. Start your own after searching the board.
Logged

deandre81

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #58 on: July 07, 2007, 09:58:20 pm »

So all i really need is the info from the beginning of the post and i should be good to go
cause it gets confusing having to run through all these posts to see when or how it actually worked
i just want to complete working guide with all possible errors modified and updated
is that in the first post?
Logged

pinpoint222

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 77
    • The Rawalpindi Website
Re: Most Simple Comment Spam protection for 1.4.x
« Reply #59 on: July 11, 2007, 07:14:46 am »

So all i really need is the info from the beginning of the post and i should be good to go
cause it gets confusing having to run through all these posts to see when or how it actually worked
i just want to complete working guide with all possible errors modified and updated
is that in the first post?

Yes.Download the Zipped file from First Post.You do not have to read full thread and its content.
Read the instructions fully in the manual which comes within zipped folder. Then apply it .Always make a backup of your Theme folder before you change anything in it. That is universal safety advice.
If you face any problem which you cannot solve and is not answered in this thread at all then post in the thread.
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.027 seconds with 19 queries.