DEV Community

Cover image for What is a Captcha And How To Bypass CAPTCHAs
Timonwa Akintokun
Timonwa Akintokun

Posted on • Updated on • Originally published at blog.timonwa.com

What is a Captcha And How To Bypass CAPTCHAs

Have you ever come across a checkbox asking you to confirm if you are not a robot followed by a visual test asking you to select images of traffic lights or something of that nature? I'm sure you have, especially if you have been using the internet frequently this past few years. This annoying test is known as a Captcha.

Nocaptcha-Recaptcha.gif

You usually would have to pass a Captcha test before you can have access to certain parts of a website, especially if you want to make a purchase, fill out a form, or subscribe to a service.

It is usually time-consuming and annoying for users often making us wish we had a way we could automatically solve Captchas. But for companies and service providers, it is a safe way for them to secure their websites and data.

In this note, I will be explaining what Captchas are, the types, their usefulness, and their difficulties. I will also be telling you about a Captcha Solver service you can use to bypass it.

stay-tuned.gif

So What is a CAPTCHA?

CAPTCHA stands for Completely Automated Public Turing test to tell Computers and Humans Apart, a term coined by Luis von Ahn, Manuel Blum, Nicholas J. Hopper, and John Langford in 2003.

It is a challenge-response test used on websites to know if it is a human or a computer/bot that is trying to gain access to areas of restrictions on its website.

I'm-not-a-robot-dumbass-I'm-alive.gif

The tests are usually visual challenges that are difficult for computers to solve but easy for humans. For example, clicking in a specific area or identifying stretched letters or numbers.

Computers do not usually have the sophistication that human beings have when it comes to processing visual data. So where we can look at an image and pick out patterns easily, a computer cannot.

dumb-robot.gif

What are CAPTCHAs Used for?

Any website that desires to restrict usage and access of their services or data uses CAPTCHA to do so. Examples of such restrictions include:

  • Ensuring people don't mess with poll accuracy by using a bot for voting or voting multiple times.
  • Prevent bots from spamming message boards, contact forms, or review sites with false comments.
  • Prevent people from buying lots of tickets to an event for resale or fake registrations for the event.
  • Prevent people/bots from making multiple fake accounts on websites.

How Do CAPTCHAs Work?

CAPTCHAs work by providing information to a user for interpretation. It could be overlapping letters and numbers that a user then has to submit via a form field or clicking in a specific area and waiting until a timer runs out.

Types of CAPTCHAs.

There are different types of Captchas and they can be identified as either Text-based, Image-based, or Audio-based.

Text-based Captcha

They make use of words, phrases, or combinations of random letters and numbers which can also be a combination of small and capital letters.

Text-based-captcha.png

Image-based Captcha

They use photos of animals, shapes, or scenes which are supposed to be recognized easily by humans. The users are required to select images matching a theme or identify images that don’t fit.

image-based-captcha.jpeg

Audio-based Captcha

They use recorded audio of words or phrases which the user has to listen to and give back as input.

Audio-based-captcha.png

No CAPTCHA reCAPTCHA

This asks the user to click on a box stating I am not a robot. It captures mouse movements to determine if a user is human or not.

No-captcha-recaptcha.png

Math or Word Problems

This asks the users to solve a simple mathematical problem such as "5+4" or "8-3" or to type the word missing in a sentence or complete a sequence of several related terms.

GraphMath_Captcha.png

Difficulties of using CAPTCHAs

Although Captchas are effective to most bots, there are some drawbacks to using them:

  • They can be frustrating for users to use.
  • They can be difficult to understand by a certain audience.
  • Not all browsers support them.
  • Some Captchas are not accessible to screen readers.
  • They can be time-consuming.
  • They are not entirely foolproof.

We have now come to the juicy part… bypassing Captchas.

man-wiggling-his-shoulders.gif

Bypassing Captcha using 2Captcha

I recently came across a Captcha solving software called 2Captcha. It is a Human-powered CAPTCHA-solving service, which means that each captcha is solved in real-time by human intelligence and not by computer or robot thus providing a high level of accuracy.

2captcha-1200-1024x546.jpg

2captcha can recognize different types of captcha (remember the examples I gave above?) and Its API is available for most programming languages. Their average response time is less than 12 seconds and their service is inexpensive starting from just $0.50 for 1000 solved CAPTCHAs. And that's a lot compared to what you are paying for.

There are two ways you can use it, which is by either integrating their API if you are a developer or using their browser extension. if you don't want to write code. Ps, you can also earn additional income on 2Captcha by solving Captchas, after all, it IS powered by humans.

So How Exactly does 2Captcha work?

Since 2Captcha has workers who are willing and waiting to solve captchas, a customer wanting to solve a captcha in real-time requests with the captcha challenge via their API directly or through their browser extension to the 2Captcha server which then delivers the captchas from the customer to their worker. Once the captcha is solved, 2Captcha servers deliver the answer back to the customer. It's that easy and all these happen in seconds.

The customer pays for the service and the worker also gets paid for solving the captcha. It's a win-win for everybody.

Conclusion

And that's it on Captchas. I hope you enjoyed the note. Remember Captcha helps to keep the bad guys out and the good guys in. But sometimes they are very annoying, that's why services like 2Captcha help us automate the process.

Till next time guys.

bye(24).gif

Connect with me on

Github | Twitter | LinkedIn | Instagram.


If you like my notes and would like to support me, you can buy me a coffee on ByMeACoffee or GetFidia. I love the taste of coffee.🥰

Latest comments (3)

Collapse
 
bamidayle profile image
Sodiq Adam

Hi.. I'm Bamidele

Some comments may only be visible to logged-in visitors. Sign in to view all comments.