Captcha php restful get request:

Captcha is used to make the forms and other input filled secure form bots or robots or automation tools to add the data in chunk and create heavy traffic which slow downs the server and hence the website.

To prevent that you can use the captcha techniques where user will be asked to enter the text from image and then verified on the server end confirming the end user is human and not the robot or automation tool.


Here the content type is set as image/png

And in the html code put the following line.

So when this code loads the get call goes to api/captcha and it will return the image content.


Download Code

PHP Restful Web Service Captcha Ajax
Tagged on:         

Leave a Reply

Your email address will not be published. Required fields are marked *