473,782 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Implementing PHP Captcha

mikeinspain
21 New Member
Hi Guys

I have a client who's existing site has a html contact form using "sps-mailsend.asp". It has a form validation script in place but is still being spammed and therefore would like to pop a "Captcha" script in.

http://spanish-property-sales.net/enquire.html

I am uncomfortable with ASP and not sure how to perhaps intergrate PHP into this page. I have been asked to go in and tidy this site up together with some SEO work, so the original work is not my own..

I would apprecaite if someone could perhaps point in the right direction or recommend any particualr script?

Thanks

Mike
Jun 28 '07 #1
7 1781
epots9
1,351 Recognized Expert Top Contributor
at the end, your best bet would be to put a secruity box, have random questions (or letters) appear, and validate if the inputted answer matches, if it does the form will submit, if it doesn't it halts and the form doesn't submit.
Jun 28 '07 #2
pbmods
5,821 Recognized Expert Expert
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

Heya, Mike.

Check out re-Captcha, which has a free PHP plugin for any script here.
Jun 28 '07 #3
mikeinspain
21 New Member
at the end, your best bet would be to put a secruity box, have random questions (or letters) appear, and validate if the inputted answer matches, if it does the form will submit, if it doesn't it halts and the form doesn't submit.
epots9.. thanks for replying.. In your opinion how would you go about doing as you suggested?

thanks

mike
Jun 28 '07 #4
mikeinspain
21 New Member
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

Heya, Mike.

Check out re-Captcha, which has a free PHP plugin for any script here.
pbmods.. thanks for the tip..

i will check out the re-captcha site.. thanks

mike
Jun 28 '07 #5
Motoma
3,237 Recognized Expert Specialist
Changed thread title to better describe the problem (did you know that threads whose titles contain phrases such as 'question' actually get FEWER responses?).

Heya, Mike.

Check out re-Captcha, which has a free PHP plugin for any script here.
I was reading up on that re-Captcha and it sounds pretty cool!
Great link!
Jun 28 '07 #6
epots9
1,351 Recognized Expert Top Contributor
epots9.. thanks for replying.. In your opinion how would you go about doing as you suggested?

thanks

mike
well if u have a database, u would have to create a table with columns (id, question, answer)...id auto increment. put simple questions (easy answers) and their answer in the table (put as many as u want).

Then in your PHP create a random number from 1 to the number of rows u have. Then create a query statement:
[PHP]$statement = "SELECT question, answer FROM valid WHERE id=".$randNum"; ";[/PHP]

if u don't have a db, use a text file, eash line would have a question(delimi ter)answer. It be the same as above just with a random line.

good luck
Jul 3 '07 #7
kovik
1,044 Recognized Expert Top Contributor
I was reading up on that re-Captcha and it sounds pretty cool!
Great link!
Isn't re-captcha the one where they're using it to create e-books? Or am I thinking of something else?
Jul 3 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2793
by: Krishna Kumar | last post by:
Hai all, I am doing a project in .net and in that project I have a problem in capturing text from an image. i.e images like CAPTCHA images . which has inbuilt text with in the image.So, Can any one suggest me how to continue my work or give their valuable suggestions for capturing text in the CAPTCHA image . yours KrishnaKumar
12
3387
by: Francois Bonzon | last post by:
After a Google search, I see that quite a few CAPTCHA implementations in PHP are available. I'd like one that's not (easily) OCR-able, or otherwise crackable. Open source or commercial is not important. Any recommendations, or experience with a specific one to share? I get a lot of SPAM entries on a guestbook, and want to protect it. I'll require users to solve a CAPTCHA before their entry is accepted. I might use CAPTCHAs to protect...
12
10239
by: pittendrigh | last post by:
Let's say we're trying to keep blog and forum spammers out of our site--we're not trying to protect fort knox. 1) Step one is a one-time-only step. We create six different css files that define the same six color names differently, but each such css file assigns red to one and only one of those same six color names, and then store the six somewhere in the document_root.
7
10164
by: mitchell | last post by:
hi i m using IE 6.0. i want to refresh just the captcha part when the user clicks on an image. i searched for articles on it and got a fairly good understanding of it. but i m still unable to get any results. i have used Simple AJAX Code-Kit (SACK) (http://www.twilightuniverse.com/)
4
5795
by: xeiter | last post by:
Hi, I have a captcha script on my website located at /captcha.php. What it does it generates an image with the code, displays the image (gd2) and saves the value of the code in session. How do I access that code in session from my c# windows application. I have a form in my application for registering users. The application then calls to the webserver and uses regular .php page to submit user registration. It has captcha and thats why I need...
11
2438
by: Twayne | last post by:
Hi, Learning PHP code; playing with various methods of generating captcha codes: In the code below, how would I change the size of the text displayed in the captcha code? Is it even possible with this method? TIA, Twayne
4
2178
by: Jeigh | last post by:
My host has been 'upgrading' lately and its caused me a whole mess of problems. The last of which being that my CAPTCHA form no longer works. I remember to get the CAPTCHA working it took me weeks to do (this was a long time ago too), and at some point I recall editing it in a Hex editor before finally getting it to work, basically I do not have a clue what this thing needs to do to work. One day I tried my registration form (without editing...
7
1490
by: =?Utf-8?B?bWF0dCBw?= | last post by:
Steve Orr has a neat Captcha control: http://steveorr.net/articles/CAPTCHASP.aspx but aside from "dragging the control onto your toolbox.." Does anyone have any installation instructions: e.g. aspx code, etc... ?? I could not find any..
10
7858
by: jeddiki | last post by:
Hi, I have a captcha script which should pick up a background image and add some random letters to it and re-display This is the part of the form that the captcha image is part of: <span >Verification Image:</span> <span ><img src="captcha.php" id="captcha" /> <a href="#renew" onclick="javascript: document.getElementById('captcha').src = 'captcha.php?' + Math.random();">refresh</a> </span>
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6733
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2874
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.