• [MOD] Anti-Spam v1.0 for Guestbook & Comments 5 0 5 1
Currently:  

Author Topic: [MOD] Anti-Spam v1.0 for Guestbook & Comments  (Read 183112 times)

0 Members and 1 Guest are viewing this topic.

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #60 on: May 24, 2006, 12:49:28 PM »
 8O

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #61 on: May 24, 2006, 02:26:15 PM »
@nnjj

... look carefully on the first side ... or take this ...  :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #62 on: May 24, 2006, 08:00:58 PM »
the whole website is blocked at my country!!!
I can't view it at all

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #63 on: May 26, 2006, 10:33:22 PM »
I hope somebody can understaned my problem with the website!

b.o.fan

  • Guest
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #64 on: May 29, 2006, 08:26:45 PM »
@Olphi:
Bitte mal Link zu deiner Gallery posten oder per PM schicken,
und deine guestbook.php anhängen.

Hallo IcEcReaM!

ich habe das gleiche Problem wie http://www.4homepages.de/forum/index.php?topic=12268.msg69275#msg69275 !


ich hänge meine guestbook und detail.php mal an!

PS: wenn ich java script ausschalte, sehe ich keinen code! :(

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #65 on: June 05, 2006, 07:31:21 PM »
why no body wants to support me in this issue!!
all what I ask is the files only to applay the patch! :x

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] Anti-Spam v1.0 for Guestbook & Comments
« Reply #66 on: June 06, 2006, 01:23:32 AM »
Ok, here it is (I'll remove it as soon as you downloaded it)

P.S. Ever heard of such thing as PROXY? try google it you might find it very helpfull in this kind of situations.
« Last Edit: June 07, 2006, 03:47:24 PM by V@no »
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 colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #67 on: June 07, 2006, 11:02:40 AM »
thankx buddy @ end
I did what in file but nothing happen a lso nothing ask for scuer no!

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #68 on: June 07, 2006, 10:51:59 PM »
STRANGE! even with this pluggin, the spam not stopping!

what shall I do! everything is done correctly!  :cry:

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] Anti-Spam v1.0 for Guestbook & Comments
« Reply #69 on: June 08, 2006, 01:53:14 AM »
who is spamming? guests? or members? if members - you know what to do...
are they from the same IP?
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 colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #70 on: June 09, 2006, 09:18:19 AM »
no its guests!!
he drive me crazy!  :cry:

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] Anti-Spam v1.0 for Guestbook & Comments
« Reply #71 on: June 09, 2006, 02:34:37 PM »
Well, then I guess I was right in my first replys to this thread...since the code does not use any "encryption", its pretty much useless mod...
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 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] Anti-Spam v1.0 for Guestbook & Comments
« Reply #72 on: June 09, 2006, 02:51:32 PM »
What you can try to do is replace
Code: [Select]
       $secure_image .= '<img src="'.get_gallery_image("captcha".substr($prevent_code,$i,1).".gif").'" border="0" alt="" />';
with:
Code: [Select]
       $secure_image .= '<img src="'.$site_sess->url(ROOT_PATH."securecode.php?id=".($i+1)."&".time()).'" border="0" alt="" />';
(look in the original tutorial to find that line)

Then create a new file securecode.php in your 4images root with this code inside:
Code: [Select]
<?php
$nozip 
$fast 1;
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$file get_gallery_image("spacer.gif");//image which will be used if something went wrong.

if ($id && $id && $comment_code stripslashes($site_sess->get_session_var('comment_code')))
{
  $file get_gallery_image("captcha".substr($comment_code,$id-1,1).".gif");
}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");             // turn off caching
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 
header("Cache-Control: pre-check=0, post-check=0, max-age=0"); // HTTP/1.1 
header("Cache-Control: no-cache, must-revalidate");
header("Content-Transfer-Encoding: none"); 
header("Content-Type: image/gif");
header("Content-Length: ".filesize($file));
readfile($file);
?>

And finaly, in guestbook_form.html and comment_form.html templates replace
Code: [Select]
                    <noscript>
                       <table>
                         <tr>
                           <td>{secure_image} </td>
                           <td><input type="text" name="prevent_code" value="" size="5" /> </td>
                         </tr>
                         <tr><td colspan="2"><b>{lang_enter_secure_code}</b></td>
                         </tr>
                        </table>
                    </noscript>
                  <script type="text/javascript">
                  function spamcode () {
                       var spamy = {prevent_code};
                       document.getElementsByName("prevent_code")[0].value = spamy;
                  }
                  document.write('<input type="hidden" name="prevent_code" value="0" \/>');
                  </script>

With:
Code: [Select]
                       <table>
                         <tr>
                           <td>{secure_image} </td>
                           <td><input type="text" name="prevent_code" value="" size="5" /> </td>
                         </tr>
                         <tr><td colspan="2"><b>{lang_enter_secure_code}</b></td>
                         </tr>
                        </table>
                  <script type="text/javascript">
                  function spamcode () {
                  }
                  </script>
I suspect is because of that javascript code the bots "learned" how to go around the security code.

I havent tested it, so be first ;)
« Last Edit: June 11, 2006, 08:17:46 PM by V@no »
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 colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #73 on: June 10, 2006, 06:21:14 PM »
this error comes up

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/jenanart/public_html/gallery/details.php on line 458

and line 458 was the following

Code: [Select]
       $secure_image .= '<img src="'.$site_sess->url(ROOT_PATH."securecode.php?id=".$i+1."&".rand(999999999)).'" border="0" alt="" />';

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #74 on: June 11, 2006, 02:23:29 PM »
any ideas? 8O