| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: United States
Posts: 586
![]() ![]() ![]() ![]() | |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Feb 2006 Location: Montreal, Quebec, Canada
Posts: 324
![]() | HTML Code: <div class="form_01"> HTML Code: <div id="form_01"> ????: NamePros.com http://www.namepros.com/showthread.php?t=272644 change Code: #form_01 {
visibility: hidden;
display: none;
} Code: .form_01 {
visibility: hidden;
display: none;
} |
| |
| | #3 (permalink) | ||||
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,552
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Also check the user agent. If it's automated spam by a script it could be an odd user agent string like PHP or whatever. You could disallow it as well.
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists | ||||
| |
| | THREAD STARTER #4 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: United States
Posts: 586
![]() ![]() ![]() ![]() | Thanks for the responses. With the help from Noobie, I got the form working properly now. Let's see if it helps.... Good suggestion sdsinc, Thanks. I'll definitely keep that in mind. - David
__________________ Smooth Stone Services Affordable Web Hosting Solutions Starting at only $4.95/month, IT Consulting and Technical Support Hunt Sources - Hunting Resources Online |
| |
| | THREAD STARTER #6 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: United States
Posts: 586
![]() ![]() ![]() ![]() | Hey Tree, I'm not sure how well-coded it is... It's one I found on the internet, and modified a little. Here's the code I'm using: (On the form): Code: <img src="captcha.php" alt="Validation Key"> Code: // Checks for correct Validation Key
$key=substr($_SESSION['captcha'],0,5);
$number = $_POST['captcha_number'];
if ($number != $key) {
$incorrect_validation = 'yes';
} Code: <?php
session_start();
$RandomStr = md5(microtime());
$ResultStr = substr($RandomStr,0,5);
$NewImage =imagecreatefromjpeg("images/captcha.jpg");
$font = imageloadfont("fonts/captcha.ttf");
$LineColor = imagecolorallocate($NewImage,233,239,239);
$TextColor = imagecolorallocate($NewImage, 255, 255, 255);
imageline($NewImage,1,1,50,100,$LineColor);
imageline($NewImage,1,50,50,10,$LineColor);
imageline($NewImage,30,50,150,30,$LineColor);
imagestring($NewImage, 5, 30, 10, $ResultStr, $TextColor);
$_SESSION['captcha'] = $ResultStr;
header("Content-type: image/jpeg");
imagejpeg($NewImage);
?>
__________________ Smooth Stone Services Affordable Web Hosting Solutions Starting at only $4.95/month, IT Consulting and Technical Support Hunt Sources - Hunting Resources Online |
| |