Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,810 members, 7,817,350 topics. Date: Saturday, 04 May 2024 at 10:43 AM

Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? (2231 Views)

How To Stop Link Spamming & Bots Registration On Any SMF Powered Forum / Do Facebook And Twitter Have Spam-bots? / Bots Are Killing My Add-on Smf ! Help (2) (3) (4)

(1) (Reply) (Go Down)

Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by cmon(m): 12:53pm On Sep 23, 2008
How can one avoid the submission of forms to db or emails by these bots. I've heard of reCaptcha but is there some other professional way of doing it? like the one you see while signing up to yahoo where you see just the image?
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by WebMonk(m): 4:10pm On Sep 23, 2008
cmon:

How can one avoid the submission of forms to db or emails by these bots. I've heard of reCaptcha but is there some other professional way of doing it? like the one you see while signing up to yahoo where you see just the image?

It's a nasty scenario, I feel you. After fighting a war with them, the best solution is the combination of the following:

1) Front End validation (Using Javascript - if the bot doesn't fill all the fields)
2) Back End validation (Php/Server end validation - If javascript is not enabled)
3) Captcha (If the bot fills all the fields)

The captcha is your last line of defense. I use a free one that's like yahoo and is free (See Example)

hope this helps.
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by cmon(m): 10:12am On Sep 24, 2008
But how are these systems really created? I mean, how do they develop the images randomly. I've seen these on many other sites. Well, I guess we'll have to settle with the one we see. Thanks webMonk.
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by WebMonk(m): 10:46am On Sep 24, 2008
cmon:

But how are these systems really created? I mean, how do they develop the images randomly. I've seen these on many other sites. Well, I guess we'll have to settle with the one we see. Thanks webMonk.

Well, you could reinvent the wheel, but if it ain't broke,

To the last question, IMHO, the basics in a nutshell is for the script to compare if what is written in the textfield tallies with what text for the image displayed is correct. Of course the image displayed is selected randomly using php.

beyond that, if you're really up for it, you could add a https connection string between the script and the server so the connection to the images is secure and the algorithm isn't reverse engineered.

Personally, i think you're best off with what you have.
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by uspry1(f): 1:06pm On Sep 24, 2008
There are many FREE captcha scripts you want to install your website, GOOGLE.COM or any script directory (PHP, JAVASCRIPT, ASP, .NET) sites is your best friend! grin

If your website is a forum template installation, then GO GET captcha A[b]DD-ON MODULE[/b] from your forum site such as SMF, PHPBB, etc.
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by ebottabi(m): 4:13pm On Sep 24, 2008
get to learn some php, it is easily done with php, i have beening them very easily, i will post some codes on this matter some days from now, let say 2days from now, since i got alot of work at hand,
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by cmon(m): 10:59am On Sep 25, 2008
i will post some codes on this matter some days from now, let say 2days from now, since i got alot of work at hand,

I've done alot of programming but for this, I dont' even know where to start from. I'll be expecting the codes soon. Thanks man.

There are many FREE captcha scripts you want to install your website

I still get that reCaptcha site. I just don't like the colours used for that app. Any other links available?


To the last question, IMHO, the basics in a nutshell is for the script to compare if what is written in the textfield tallies with what text for the image displayed is correct. Of course the image displayed is selected randomly using php.

beyond that, if you're really up for it, you could add a https connection string between the script and the server so the connection to the images is secure and the algorithm isn't reverse engineered.

all these ones na long tin!
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by WebMonk(m): 11:13am On Sep 25, 2008
cmon:

all these ones na long tin!

LOL - But that's how reCaptcha works na. Besides, aren't you the one i think wants to reinvent the wheel? And Security is always a "long tin" at the end of the day cheesy

Stumbled on this, thought it might be useful for customization: http://www.codewalkers.com/c/a/Miscellaneous/Creating-a-CAPTCHA-with-PHP/
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by kehers(m): 1:05pm On Sep 25, 2008
Hmm, captcha, captcha, captcha
WAs once in ur shoes to and had to find a way to deal with this bot thing. However, I had to write the captcha script myself (just out of fun actually and to c if I can). Attached is the captcha script that generates the random image (rename the captcha.png to captcha.php as NL no allow me upload php files). The generated text is stored in d session $_SESSION["captchaTxt"] so u can validate dat wt wat d user or bot typed.
All u need do is just put d script location in ur source: <img src="captch.php" alt="" />
But then that was then. This days I hadly do captchas. Of late Iv been trying to design from a user perspective dan dat of a developer. D developers perspectve is 'put d captcha to prevent bot' but to (most) users, captcha sucks! Personally I dont like seeing dem wen Im filling a form. So wats d work around?
What I simply do now is create a blank field in d form, tell d user to leave it blank and hide it with CSS. i.e

<div style="display:none"><label>Leave field blank</label> <input type="text" name="blank" /></div>

The 'leave field blank' is just in case (probably d user turned of CSS) he sees the field. So he will know he shouldnt fill it. But normally he wont even be aware of anything and just pass through the other fields. U can then check if d field is filled or not @ processing. If it is - it is a bot - or probably a disobedient user.
Hope that helps.

Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by cmon(m): 12:39pm On Sep 27, 2008
Hey kehers,
That's impressive. You did very well with your PHP. I guess i'll try your code out in my next project. Not to worry, you'll still be referenced as the author. Thanks.

@webMonk
That's a good one. Thanks for the link.
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by kehers(m): 12:31pm On Sep 28, 2008
It's all urs pal , enjoy wink
Re: Avoiding Automated Form Submission By Bots, Is reCaptcha The Only Answer? by Nobody: 8:50pm On Sep 28, 2008
for php, you gd library will be doing most of the work, read ur php documentation

(1) (Reply)

Live Telecast On My Web Page / Website / Facebook Viewpoint App Review; Get Paid To Take Surveys For Facebook / бесплатный Vps хостинг

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 29
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.