Author Topic: [MOD] [1.7.1] (Antispam) Sicherheitscode bei Kommentar / secure code at comment  (Read 156219 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #15 on: February 01, 2006, 03:04:43 PM »
you put
Code: [Select]
if (($sicherheit_code == "") || ($sicherheit_code != str_replace('´|´', '=', base64_decode(base64_decode($sicherheit_dec))) ))  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['secure_required'];
      $error = 1;
    }
in the wrong place.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #16 on: February 01, 2006, 03:10:17 PM »
Oh no.

I have found my error. I have two lines called

Code: [Select]
if ($comment_user_name == "")  {
and i have place it under the wrong one.





Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline T

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #17 on: February 01, 2006, 03:31:51 PM »
For instance, does this block :

Quote

/* ## Safety script ## */
mt_srand((double)microtime()*1000000);
$comment_sicherheit = mt_rand(000001,999999);
$comment_sicherheit = str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit)));
/* ## Safety script ## */


also prevents the usage of random image IDs over the URL bar ? ;)

No, it doesn't. It only encodes the image ID and sends it into a variable.

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #18 on: February 01, 2006, 03:47:56 PM »
Quote

No, it doesn't. It only encodes the image ID and sends it into a variable.


Thanks for answering this. Perhaps it should be considered to also encode it from the URL for security issues. ;)

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #19 on: February 03, 2006, 07:07:29 PM »
This require GD Library or some other script ? :|

Offline T

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #20 on: February 03, 2006, 08:32:14 PM »
I think it requires GD Library.

Offline theresa_rose

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #21 on: February 03, 2006, 10:56:01 PM »
Installed the script but it keeps saying that the security code was inputted wrong.  I have GD installed...is there anything I missed?

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #22 on: February 04, 2006, 12:37:13 AM »
I don´t have install this mod, but I will do it!

I also need this for my guestbook too, please help!

Project offline

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #23 on: February 04, 2006, 10:09:53 AM »
I don´t have install this mod, but I will do it!

I also need this for my guestbook too, please help!

http://www.4homepages.de/forum/index.php?topic=11405.msg59615#msg59615
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #24 on: February 04, 2006, 10:17:36 AM »
Oh sorry, I was very tired last night  :oops:

Project offline

Offline Flo2005

  • Full Member
  • ***
  • Posts: 237
  • Copy & Paste Profi :)
    • View Profile
    • snuup.de! - Bilder - Sounds - Videos - fun4FREE!
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #25 on: February 04, 2006, 10:52:39 AM »
Ones more: ->guestbook.php

Where I have to paste the following code?
Code: [Select]
if (($sicherheit_code == "") || ($sicherheit_code != str_replace('´|´', '=', base64_decode(base64_decode($sicherheit_dec))) ))  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['secure_required'];
      $error = 1;
    }

This code I have 2 times in my guestbook.php
Code: [Select]
if ($comment_user_name == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['name_required'];
      $error = 1;
    }

Where I have to paste the code? At first or @ the second part?

Edit: I´ve tried and now it works - another great MOD!

F*ck you spammer :mrgreen:

Project offline

Offline JensF

  • Addicted member
  • ******
  • Posts: 1.028
    • View Profile
    • http://www.terraristik-galerie.de
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #26 on: February 04, 2006, 05:47:27 PM »
Read the Topic :) You must do it in the second one.

This was my error, too!
Mit freundlichem Gruß
Jens Funk



-> Sorry for my bad English <-

Offline T

  • Pre-Newbie
  • Posts: 9
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #27 on: February 04, 2006, 06:49:15 PM »
Installed the script but it keeps saying that the security code was inputted wrong.  I have GD installed...is there anything I missed?

could you paste a link to your 4images-gallery please?

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #28 on: February 08, 2006, 04:54:45 AM »
@gheelho 
Könntest du den Mod auch für diesen Mod umschreiben?
http://www.4homepages.de/forum/index.php?topic=11470.msg59977#msg59977

Eigentlich würde eine 10 Sekunden Button Sperre (melden.html) schon reichen, aber leider bekomm ich das nicht hin.

Gruß
michi-w.

Offline theresa_rose

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: [MOD] (Antispam) Sicherheitscode bei Kommentar / secure code at comment
« Reply #29 on: February 09, 2006, 05:30:31 PM »
No I had to uninstall the mod because my site is super active....I will reinstall on a test site (which i should of done in the first place) and if I come up with the same problem I will post again.