Project Introduction
Project address: Poke around here. The reason for this project is that the great God wants to participate in the hackmit, need them to identify 10000 pieces in 15000 verification code or each character's recognition accuracy
This PHP generated CAPTCHA code principle generates a random number--Create picture--random number in the picture--Save in session, look at the process verification code picture generation notification browser will output PNG picture ready random
Refreshing the browser is normal.
How to solve, what code can force the verification code re-loaded.
Reply to discussion (solution)
Add a js random parameter after the generated address, url?r=math.random ()
">
You add a non-cached header
Many systems now register, log in or publish information modules are added to the random code function, is to avoid automatic registration program or the use of automatic publishing programs.
The verification code is actually randomly select some
The role of the CAPTCHA:1, to prevent advertising machine registration and posting, comments.2, to prevent brute force password, especially the password with administrator privileges.Here is a very useful verification code generation tool:
First, the principleThe verification code is actually a random string. The principle can be divided into two kinds:1. Simple Verification CodeGenerated directly from ASCII codes of letters and numbers. This is the verification code used in this
This article mainly introduces PHP generate a variety of random verification code method, combined with specific examples of the form of PHP commonly used to generate verification code operation related skills, and with the demo source for the
Many systems now register, log in or publish information modules are added to the random code function, is to avoid automatic registration program or the use of automatic publishing programs.
The verification code is actually randomly select some
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.