DEV Community

Cover image for Integrating captcha in your app in 10 minutes
Abhiraj Bhowmick
Abhiraj Bhowmick

Posted on • Originally published at abhiraj.mdx.one

Integrating captcha in your app in 10 minutes

Ok, so what is a captcha?

Captcha is “a computer program or system intended to distinguish human from machine input, typically as a way of thwarting spam and automated extraction of data from websites.” It stands for Completely Automated Public Turing test to tell Computers and Humans Apart.

Yeah I know, 10/10 on Acronym Deriving Skills

Whether it be the next Twitter or a simple SaaS, captchas are important, however boring it may be, so that you don’t get the traffic you don’t want.
Now, you don’t need to waste your precious time into making a captcha then deciding on how to bypass the captcha and what not.

Let me introduce you to 2Captcha, a captcha solver which has an API for developers to implement captcha anywhere.
2captcha’s service provides an API that allows you to solve different types of captchas.
They don't offer a ready-to-use solution for custom tasks, but they have a catalog of software integrated with the service where you can find software for your needs.

To use the service, follow a few simple steps:

  • Register an account
    step1

  • Check your balance and add funds accordingly.
    step2

  • Go to the settings page to get your API key and then copy and
    paste it in your software.
    step3

Now you are ready to start using your software with 2Captcha.

2captcha is a simple and quick way to get someone to solve your captcha. Just upload a text and it will be solved in 12 seconds.
2captcha is a Human-based captcha solving service, they have many workers who have signed up for this task. Their public statistics are listed below.

stats

In March 2017 Google modified the ReCaptcha algorithm to shield it from an automatic answer. ReCaptcha now adjustments duties and pics oftentimes all through a solution on many famous websites and that is why solution time is multiplied. from time to time it takes extra than 2 mins due to the fact an actual human wishes a lot of time to bypass the ReCaptcha, despite the fact that it is solved manually as a regular person. This is why response times are affected a bit.
They have a variety of captcha to choose from. You can check the rates here.
Today, we’ll see how to implement SolveMedia image captcha with Java

  • Download the captcha image
  • Send the image to 2Captcha API
(http://2captcha.com/in.php)
Enter fullscreen mode Exit fullscreen mode

codeapi

  • Paste received code into the field. Then, submit the form.

An example of the form in HTML:
htmlform

They also have a referral program that allows to you share your own affiliate link, which when used to purchase from 2captcha, credits you 10% of the amount spent by your friend.

P.S: here’s my link, go use it.

You collect 10% of your affiliate earnings and 10% of any purchases your partner makes on the service (when, your partner spends money, sending captcha to a software, registering in the catalog, 10 percent deducted software developers, and you get only 5 percent of its expenditure on the captcha). Once a day, an affiliate is rewarded to the account balance. If your partner spends or earns money today, you will receive compensation tomorrow. $0,5 is the minimum payout amount. Payment must be requested on the page "payments for affiliate program," with the amount and method of payment specified. Depending on the payout direction, withdrawals are processed instantly or within 5 business days.

2Captcha is an automated captcha solution that uses the power of humans. Its goal is to improve reliability and make it possible for everyone.

I hope this post suits your purpose well. And if you find this review helpful then you can share this knowledge with your friends and fellow colleagues.

Discussion (2)

Collapse
sroehrl profile image
neoan

Okay, so first things first: if you post marketing content here, please make it worthwhile and relevant, otherwise it seems spamy. As you notice from your comment at the time of me writing this, the relevancy for developers is not clear. The only thing you mentioned in that regard is

Now, you don’t need to waste your precious time into making a captcha then deciding on how to bypass the captcha and what not.

What would have been important is a why and a use case. Your service is helpful for us when testing applications, building bots or webscraping other services. The fact that you don't go into this but rather focus on selling this service makes the quality of this post questionable.
Now, again, I personally am against banning such content as long as it's relevant, but please take this as advice for the future.

Collapse
foxy4096 profile image
Aditya Priyadarshi • Edited on

I have used google recaptcha v3, they are also good