Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement CAPTCHA in php

Shulou Source: shulou.com Published: 2022-06-03 06:41:43 11月15日 Update

This article mainly introduces how to implement CAPTCHA in php, which is very detailed and has a certain reference value. Friends who are interested must read it!

1. Font variant (generally distorted by algorithm, which is more representative: http://code.google.com/p/cool-php-captcha/

2. Font sticker (represented by qq CAPTCHA, which is still difficult to find on the Internet to crack qq CAPTCHA)

3, interference lines, noise points (this kind of identification is quite easy, it is easy to be automatically identified by the program)

As mentioned above, the first and second methods are more difficult to identify. Personally, I prefer the second method, which doesn't seem to be very laborious. And twisted words always feel strange. Haha, it's just a personal preference.

Implementation code:

The copy code is as follows:

Tags: Validation font character angle range interference code size sine background color personal representative content picture width file text method rectangle Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Xiaomi macOS Apple MariaDB