Implementace

Implementace s pluginem

Currently availible plugins:

Implementace bez pluginu

Klientská část

<!-- your HTML content -->

<form action="" method="post">

	<!-- your form code here -->
	
	<div id="rocaptcha_placeholder"></div>
	<script type="text/javascript" src="https://rocaptcha.com/api/js/?key=your_public_key"></script>
	<script type="text/javascript">
		RoCaptcha.init("rocaptcha_placeholder");
	</script>

	<!-- your form code here -->

</form>

<!-- your HTML content -->

API JavaScript request

This request returns JavaScript code, which will be controlling RoCATPCHA solving process.

URL: https://rocaptcha.com/api/js/

Parameter Description
key (required) Your private key.
lang (optional) Language code.

Serverová část

After displaying RoCAPTCHA, you need to implement verification, that user answer was the right one. This is achieved by sending POST request to https://rocaptcha.com/api/verify/.

API verify request

URL: https://rocaptcha.com/api/verify/

Parameter Description
key (required) Your private key.
hash (required) Image hash code.
response (required) Value of response to challenge.
remoteip (required) Client IP address.
lang (optional) Language code.