FX Captcha - (by Felice Di Stefano)
This server behavior will create a captcha image to validate form against non human users.
Note: This code requires that the GD library is properly installed on the server, otherwise it will not work.
Applying
This behavior must not be applied on the page where is the form to validate but on an empty page. Create a new dynamic page and give a name as you would give it to an image, just to be more appropriate.
| Size: | Select the size, Normal as 200x75px, Small as 140x40px. |
| String Length: | Define the length of the validation code, the minimum is 4 and the maximum is 9. |
| Charset: | Select from this menu the group of chars you want to use for the string. |
| Bg Color: | Define the background color of the image. |
| Noise Color: | Define the noise color which will be applied on the image. If the Font Color is set to Mixed this field will be ignored and the noise color will be a mix of the 3 colors used for fonts. |
| Noise Density: | Define the noise density from this menu which has 4 options: None, Low, Normal, High. |
| TTF Font: | On applying the arial.ttf font will be added to the FXInc folder, the path to it is already set as default but after aplying the behavior you may manually add any TTF font you want to the FXInc folder, then you can edit this behavior and browse the FXInc folder to the desired font. |
| Font Color: | If Unique is selected it will be used the selected Color 1, if Mixed is selected chars will be mixed with the defined 3 different colors, in this case also the noise will be a mix of the 3 font colors. |
| Color 1 2 3: | Define the font color. Color 1 is always required, 2 and 3 are required only in Mixed mode. |
After the page is ready with the behavior applied you can save it.
by FELIXONE