Why
Do I Need to Enter This Code?
Typing the
characters from a picture helps ensure
that a person—not an automated program
or attackers—is completing the
registration form. This reduces system
loads and ensures better performance of
your services.
In most cases, an automated registration
program can’t recognize the characters
in the picture.
Demo Registration Check:
Putting AspVerify to work "
THE DOC"
ImageTypeStr
String value indicating the image format:
JPG or JPEG
BMP
PNG
ImageType
Numeric value indicating the image format:
1 for JPG
2 for BMP
3 for PNG
Height
Numeric value specifying the Height of the resulting image.
Width
Numeric value specifying the Width of the resulting image.
BorderWidth
Numeric value specifying the border width of the resulting imagey.
BorderColor
Numeric value specifying the color value of border of the resulting image.
ShowBorder
Enable or disable show border of the resulting image (True or False).
KeyLength
Numeric value specifying the length of key string. (Default value is 6)
Style
Numeric value specifying the Verify image style.
1 for
2 for
3 for
4 for
5 for
(1.2)
6 for
(1.2)
7 for
(1.2)
and 0 for random style
KeyStyle (1.2) Numeric value indicating the Key format (Default value is 0):
0 for AlphaNumeric (0..9,A..Z)
1 for Alpha (A..Z)
2 for Numeric (0..9)
ShowImage : Function
Method to generate image of Verify and return to browser.
Result: Gets key value of the code generated. (1.2)
Example:
<%
Set Obj = Server.CreateObject("nonnoi_ASPVerify.ASPVerify")
Obj.Style = 4
Obj.ImageTypeStr = "PNG"
Obj.ShowBorder = False
Session("RegisKey") = Obj.ShowImage
set Obj = nothing
%>
IsVerified(InputStr)
Method to check verify registration data.
Parameters:
InputStr - input string (characters that key-in).
Result:
True when characters that you see = characters that you key-in
else False
RegisterName
if you already registered this product, input your name (company name or
customer name) here.
** you must set this value before call ShowImage.
RegisterKey
if you already registered this product, input your registration key here.
** you must set this value before call ShowImage.
ASP : create verify image
<%
Set Obj = Server.CreateObject("nonnoi_ASPVerify.ASPVerify")
Obj.Style = 4
Obj.ImageTypeStr = "PNG"
Obj.ShowBorder = False
Obj.ShowImage
set Obj = nothing
%>
ASP : Is Verified?
<%
Set Obj = Server.CreateObject("nonnoi_ASPVerify.ASPVerify")
strVerify = request("strVerify")
if Obj.isVerified(strVerify) then
response.write ("OK accept!")
Else
response.write ("Reject - robot?!")
End If