The web architecture defines three roles.
- Browser – The browser of the website visitor.
- WebServer – The web server that provides web pages to its visitors who need HelloCaptcha protection.
- HelloCaptcha – Our HelloCaptcha server, which serves the CAPTCHAs and evaluates the answers after.
The following figures show the simplest case of using HelloCaptcha service.
The procedure in case of a simple use of the HelloCaptcha service consists of the following steps:
- A visitor comes to a HelloCaptcha protected website. The browser sends the request to the web server.
- The web server receives the request and asks HelloCaptcha server for a new Turing test instance. The web server passes a profile ID to the HelloCaptcha server.
- The HelloCaptcha server searches a CAPTCHA that meets the parameters defined in the profile. The ID of the CAPTCHA, the timestamp of the request, etc. will be noted and the Turing test ID for the event will be returned.
- The web server inserts a HTML code into the form that is protected. The HTML code contains the link to the image of the CAPTCHA, an input for the answer and the Turing test ID.
- The browser receives the HTML code that embeds the information, downloads the CAPTCHA image and displays it.
- The visitor fills in the forms and answers the CAPTCHA.
- The web server receives the answer of the visitor and passes it to HelloCaptcha server with the Turing test ID.
- The HelloCaptcha server searches the Turing test by its ID and checks whether the visitor's answer matches the right answer or not.
- The web server decides what to do depending on the correctness of the visitor's answer.