Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Spam protection with image confirmation code (captcha)
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Spam protection with image confirmation code (captcha)
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2635
Location: Germany

Post Reply with quote
Ramon wrote:
Yep, i'd be happy to donate something or help paying for a cool gift Smile

Just keep "watching" the forum's ads and everything is fine. Wink
Fri Jan 18, 2008 3:59 pm View user's profile Send private message
Guest








Please login to hide the ads.

scottdallas



Joined: 04 May 2006
Posts: 1782
Location: US

Post Reply with quote
Oh our humble FI-DD.. one day you might not get a choice when we try to pay you back Wink

If I had bought less domains.. pushed one harder.. and worked harder at advertising.. I'd probably have some money to share!

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Sun Jan 20, 2008 12:41 am View user's profile Send private message Visit poster's website AIM Address
Mania



Joined: 03 Feb 2007
Posts: 105

Post Reply with quote
if my server not support imageftbbox(), what is Captcha alternative ?
Thanx
Thu Jan 24, 2008 7:22 am View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1782
Location: US

Post Reply with quote
I had that spam word filter working pretty good.

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Thu Jan 24, 2008 5:25 pm View user's profile Send private message Visit poster's website AIM Address
Mania



Joined: 03 Feb 2007
Posts: 105

Post Reply with quote
scottdallas wrote:
I had that spam word filter working pretty good.

how can i use that?!
thanx for your help
Fri Feb 01, 2008 12:59 pm View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1782
Location: US

Post Reply with quote
First, download spam protection:
http://english.cutenews.ru/forum/spam-protection-with-image-confirmation-code-%28captcha%29-t251.html (which I see you already found Razz)

Second, see how to remove most spammer messages:
http://english.cutenews.ru/forum/removing-spam-%29-t1230.html

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Fri Feb 01, 2008 4:43 pm View user's profile Send private message Visit poster's website AIM Address
Mania



Joined: 03 Feb 2007
Posts: 105

Post Reply with quote
scottdallas wrote:
First, download spam protection:
http://english.cutenews.ru/forum/spam-protection-with-image-confirmation-code-%28captcha%29-t251.html (which I see you already found Razz)

Second, see how to remove most spammer messages:
http://english.cutenews.ru/forum/removing-spam-%29-t1230.html

thanks but you don't see my comment, my server don't support imageftbbox().
Quote:
if my server not support imageftbbox(), what is Captcha alternative ?
Thanx

also spam protection with captcha isn't for me:)
Sat Feb 02, 2008 8:01 am View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1782
Location: US

Post Reply with quote
I did see that I just don't know how to make that happen lol.. I can't believe going from one server to another can have so many slight changes.. I don't know what to tell you to do to stop spammers...

_________________
www.scottdizzle.com uses cnr Smile
last update: 07-22-08: 8:30 pm
Mon Feb 04, 2008 1:19 pm View user's profile Send private message Visit poster's website AIM Address
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2635
Location: Germany

Post Reply with quote
Mania wrote:
thanks but you don't see my comment, my server don't support imageftbbox().

Use the "spam filter" plugin and check out the link scott gave you.
Thu Feb 07, 2008 8:11 pm View user's profile Send private message
cybaGS



Joined: 27 Jun 2007
Posts: 37

Post Reply with quote
Quote:
Fatal error: Undefined class name 'phpcaptcha' in /home/pornguru/public_html/galatasaray/plugins/captcha.php on line 48


i get this error when submitting a comment Sad
Wed May 07, 2008 7:01 pm View user's profile Send private message
snoopy



Joined: 28 Mar 2006
Posts: 23

Post captcha with imagebox Reply with quote
Hi can anyone convert this captcha code to work with cutenews, my imagebox function keeps crashing, I have a picture gallery that works great with captcha but is a none imagebox version.

Bellow is code

<?php

/*******************************************************************
Zenith Picture Gallery
CAPTCHA mod
Written by Marcin Krol <hawk@limanowa.net>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, a copy of
which is made available to you with this package.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

File: captcha.php (new in v0.9.4 DEV, written by hawk@limanowa.net)
Description: Simple PHP based CAPTCHA
*******************************************************************/

session_start();

// image width (wider image = longer code, 17 pixels per character, 32 chars maximum)
$width = 84;
// image height (try to keep it >= 20)
$height = 18;
// black & white captcha (0 - no, 1 - yes)
$bw = 0;
// draw lines (0 no, 1 - horizontal, 2 - vertical, 3 - random)
$draw_lines = 3;
// how many random lines
$lines = 50;
// draw random pixels (0 - no, 1 - yes)
$draw_pixels = 1;
// how many random pixels
$pixels = 250;
// image background color range
$bg_color_min = 150;
$bg_color_max = 250;
// line color range
$ln_color_min = 100;
$ln_color_max = 250;
// line color range
$px_color_min = 100;
$px_color_max = 150;
// text color range
$txt_color_min = 30;
$txt_color_max = 50;

// list of characters allowed in captcha
$char_table = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";

// create image, fill with random color
$image = imagecreatetruecolor($width, $height);
if($bw)
{
$color_code = rand($bg_color_min, $bg_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($bg_color_min,$bg_color_max), rand($bg_color_min,$bg_color_max), rand($bg_color_min,$bg_color_max));
imagefill($image, 0, 0, $color);
// draw lines if required
if($draw_lines == 1)
{
// horizontal lines all over image
for($i=0; $i<$height; $i++)
{
if($bw)
{
$color_code = rand($ln_color_min, $ln_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max));
imageline($image, 0, $i, $width, $i, $color);
}
}
elseif($draw_lines == 2)
{
// vertical lines all over image
for($i=0; $i<$width; $i++)
{
if($bw)
{
$color_code = rand($ln_color_min, $ln_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max));
imageline($image, $i, 0, $i, $height, $color);
}
}
elseif($draw_lines == 3)
{
// random lines
for($i=0; $i<$lines; $i++)
{
if($bw)
{
$color_code = rand($ln_color_min, $ln_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max), rand($ln_color_min,$ln_color_max));

imageline($image, rand(0,$width), rand(0,$height), rand(0,$width), rand(0,$height), $color);
}
}
// draw random pixes if required
if($draw_pixels)
{
for($i=0; $i < $pixels; $i++)
{
if($bw)
{
$color_code = rand($px_color_min, $px_color_max);
$color = imagecolorallocate($image, $color_code, $color_code, $color_code);
}
else $color = imagecolorallocate($image, rand($px_color_min,$px_color_max), rand($px_color_min,$px_color_max), rand($px_color_min,$px_color_max));
imagesetpixel($image, rand(0,$width), rand(0,$height), $color);
}
}
// generate random string and put it on image
$num_chars = floor($width / 16);
$string = "";
for($i=0; $i<$num_chars; $i++) $string .= $char_table{rand(0,strlen($char_table)-1)};
$color = imagecolorallocate($image, rand($txt_color_min,$txt_color_max), rand($txt_color_min,$txt_color_max), rand($txt_color_min,$txt_color_max));
for($i=0, $j=1; $i<$num_chars; $i++, $j+=9)
{
imagestring($image, (rand(0,1) ? 3 : 5), rand($i*8+$j,$i*8+$j+, rand(-2,$height-14), $string{$i}, $color);
}
// store code in session
$_SESSION['authcode'] = $string;

// output image
header("Content-type: image/png");
imagepng($image);
imagedestroy($image);
?>
Thu May 08, 2008 11:12 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2635
Location: Germany

Post Re: captcha with imagebox Reply with quote
snoopy wrote:
Hi can anyone convert this captcha code to work with cutenews, my imagebox function keeps crashing, I have a picture gallery that works great with captcha but is a none imagebox version.

Imagebox is a php function. It has nothing to do with your picture gallery.

Anyway, try the attached plugin.



captcha2.zip
 Description:
Alternative captcha plugin

Download
 Filename:  captcha2.zip
 Filesize:  2.09 KB
 Downloaded:  18 Time(s)

Thu May 08, 2008 7:11 pm View user's profile Send private message
snoopy



Joined: 28 Mar 2006
Posts: 23

Post imagepng Reply with quote
Hi Many thanks but i am getting this error

Warning: imagepng() [function.imagepng]: Unable to open 'captcha.png' for writing in /home/www/frankwarren/drill/News/plugins/captcha2.php on line 38

any ideas thanks
Fri May 09, 2008 11:12 am View user's profile Send private message
cybaGS



Joined: 27 Jun 2007
Posts: 37

Post Reply with quote
FI-DD could you look at my problem that i stated 2-3 post ago?
Fri May 09, 2008 8:41 pm View user's profile Send private message
snoopy



Joined: 28 Mar 2006
Posts: 23

Post Reply with quote
FI-DD any ideas on the above i've looked all over the script but can't find the problem, cheers in advance
Tue May 13, 2008 9:29 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 6 of 7

 
Jump to: 
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
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.