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

Author Topic: [MOD] Anti-Spam v1.0 for Guestbook & Comments  (Read 183010 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 #75 on: June 11, 2006, 02:43:35 PM »
one of my buddies advice me to do the foloowing
Code: [Select]
   $secure_image .= '<img src="'. $site_sess->url(ROOT_PATH ."securecode.php?id=". $i+1 ."&". rand(999999999)) .'" border="0" alt="" />';
rand has 2 Parmeters (min,max) one of them is mssing here

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 #76 on: June 11, 2006, 07:17:09 PM »
first and second parameters in rand() are both optional....

$i+1 must be: ($i+1) that's all.

I've updated the post above yesterday if you havent noticed it yet..
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 #77 on: June 11, 2006, 07:20:43 PM »
ok,

now this error appear

Warning: rand() expects exactly 2 parameters, 1 given in /home/jenanart/public_html/gallery/details.php on line 458

Warning: rand() expects exactly 2 parameters, 1 given in /home/jenanart/public_html/gallery/details.php on line 458

Warning: rand() expects exactly 2 parameters, 1 given in /home/jenanart/public_html/gallery/details.php on line 458

Warning: rand() expects exactly 2 parameters, 1 given in /home/jenanart/public_html/gallery/details.php on line 458

Warning: rand() expects exactly 2 parameters, 1 given in /home/jenanart/public_html/gallery/details.php on line 458



also images of the code is broken
« Last Edit: June 11, 2006, 07:49:54 PM by nnjj »

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 #78 on: June 11, 2006, 07:57:13 PM »
yes, you are right, 2 parameters needed
I've updated the post above
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 #79 on: June 11, 2006, 08:00:46 PM »
great now the error disappear but still the secure images not appear!

http://www.jenanart.com/gallery/details.php?image_id=172

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 #80 on: June 11, 2006, 08:19:42 PM »
well, that what I get for not testing the code :oops:
in securecode.php replace " . " at the end with " ; ":[qcode]  $file = get_gallery_image("captcha".substr($comment_code,$id-1,1).".gif").[/qcode]
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 #81 on: June 11, 2006, 09:02:28 PM »
yessssssssssssssssssssss thanks a lot its working great now :) :mrgreen:

thanks a lot  :D

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #82 on: June 14, 2006, 05:55:25 PM »
after all this struggle!

this patch DID NO stop the SPAM! :cry: :cry: :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 #83 on: June 15, 2006, 12:44:03 AM »
Then there is a human behind the spam, not a bot...just ban him
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 knuffi

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #84 on: June 15, 2006, 08:21:19 AM »
 :P
Hallo

Danke an die Programmierer, wow Funktioniert auf Anhieb.

Versuche mich laufend in diese vielen Mods einzuarbeiten... manche kann man einfach installieren und andere nicht so.
Eine Herausforderung.
Werde Sicher nicht das letzte mal hier sein um mich zu bedanken oder um Rat zu holen.....
Bin daher immer dankbar für jede Hilfe, bin ein absoluter anfänger was php betrifft.

Deshalb nochmals danke an alle welche hier so tolle Mods schreiben.

Hans-Ruedi

www.webandart.ch/4images

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #85 on: June 15, 2006, 11:03:46 AM »
how I can?
I am allowing visitors to add comments witthout regisration because if I did request for regisration alot of users are lazy to do so then?

can I ban vistors?

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 #86 on: June 15, 2006, 02:35:14 PM »
mod "ban"
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 #87 on: June 16, 2006, 10:31:12 PM »
just installed we will see if this gone to stop the SPAM  :cry:

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #88 on: June 19, 2006, 08:01:01 PM »
Hi @ all

I have a strange problem, i can't see the image in the guestbook form, but in the comment form everything is ok. Further I can post without insert the secure code (only in guestbook)...???
Please help me, I have no idea at the moment!??

Thanks a lot


PS: I've done all steps of V@no's tip!

Offline colorssky

  • Full Member
  • ***
  • Posts: 128
    • View Profile
    • http://www.nnjj.net
Re: [MOD] Anti-Spam v1.0 for Guestbook & Comments
« Reply #89 on: June 22, 2006, 07:51:44 PM »
so any ideas to stop the SPAM really?