search
Homephp教程php手册JiVerification Code Installation and Deployment Tutorial

As the Internet plays an increasingly important role in people’s lives, Internet security issues have also begun to become important.

The black Internet industry chain is the most powerful enemy in the field of Internet security.

I believe everyone knows something about black products, so how exactly do black products operate and make profits? You can check the picture below~

So, protecting the security of your account is the first step to fight against black industry! The verification code is an important way to ensure account security!

Traditional verification codes not only bring a very poor experience to users, but also begin to be unable to resist malicious attacks by hackers in terms of security! Therefore, new verification codes with high security and good user experience are what we need!

Currently on the market, the widely praised "Ji Verification Code" is very good in my opinion~

You can experience their demo:

http://www.geetest.com/exp_normal

Jixian provides SDK, which can be integrated into our official website for free. Let me explain the installation method in detail~

1、DownloadSDK

https://github.com/GeeTeam/gt-php-sdk

2, background registration application ID and Key

https://user.geetest.com/email/register

3. Import the class.geetestlib.php file into your project

You can choose to deploy the Verification Code on the PC terminal or mobile terminal.

If you choose PC side deployment, replace the strings after CAPTCHA_ID and PRIVATE_KEY with your own ID and Key registered in the background.

If deployed on the mobile side, replace the strings after MOBILE_CAPTCHA_ID and MOBILE_PRIVATE_KEY with the ID and Key registered in the background.

4.In the verification part, execute the verification logic through the following code (taking PHP language as an example)

<span style="color: #008080;">1</span> <span style="color: #000000;">php
</span><span style="color: #008080;">2</span>  <span style="color: #0000ff;">require_once</span>('geetestlib.php');<span style="color: #008000;">/*</span><span style="color: #008000;"> 注意路径必须要正确 </span><span style="color: #008000;">*/</span>
<span style="color: #008080;">3</span> <span style="color: #800080;">$validate_result</span>=geetest_validate(@<span style="color: #800080;">$_POST</span>['geetest_challenge'], @<span style="color: #800080;">$_POST</span>['geetest_validate'],@<span style="color: #800080;">$_POST</span>['geetest_seccode']); <span style="color: #0000ff;">if</span>(<span style="color: #800080;">$validate_result</span><span style="color: #000000;">){ 
</span><span style="color: #008080;">4</span> <span style="color: #008000;">//</span><span style="color: #008000;"> 验证成功后的操作 </span>
<span style="color: #008080;">5</span> }<span style="color: #0000ff;">else</span><span style="color: #000000;"> { 
</span><span style="color: #008080;">6</span>     <span style="color: #008000;">//</span><span style="color: #008000;"> 验证失败后的操作 </span>
<span style="color: #008080;">7</span> } 

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version