Skip to content

Implementing a captcha service using PHP and javascript to can use it anywhere such as Web.

License

Notifications You must be signed in to change notification settings

BaseMax/SampleCaptchaAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thin Captcha

Sample Captcha API

Implementing a captcha service using PHP and javascript to can use it anywhere such as Web.

Using

We did create one example project in example/ directory.

sample captchca api

Create captcha

Every requests need token and key value in Headers.

http://localhost/matno3/?method=create

{
	status: "success",
	message: "",
	result: {
		code: "klk8gab4tkcmemvk1dj7tzsskh4xw3rf2153l1he9l92o9bgfa"
	}
}

Verify a captcha

http://localhost/matno3/?method=verify&value=707&code=klk8gab4tkcmemvk1dj7tzsskh4xw3rf2153l1he9l92o9bgfa

{
	status: "failed",
	message: "Your session is not valid!"
}

http://localhost/matno3/?method=verify&value=7636&code=klk8gab4tkcmemvk1dj7tzsskh4xw3rf2153l1he9l92o9bgfa

{
	status: "success",
	message: "You are wellcome!",
	result: {
		token: "tglu9ph4mssfdvt5s8hal3rggcvdy9nfintbpsn829vhpq9lmc"
	}
}

Done captcha using server-side programming language

http://localhost/matno3/?method=done&token=badvalue

{
	status: "failed",
	message: "Your session is not valid!"
}

http://localhost/matno3/?method=done&token=tglu9ph4mssfdvt5s8hal3rggcvdy9nfintbpsn829vhpq9lmc

{
	status: "success",
	message: "Enjoy from it, Done!"
}

Max Base

My nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers. (Max Base)

Asrez Team

A team includes some programmer, developer, designer, researcher(s) especially Max Base.

Asrez Team