<commit_before># CAPTCHA plugin

A plugin for [Kirby CMS](http://getkirby.com) to secure forms with CAPTCHAs using [Securimage](http://www.phpcaptcha.org) 

## Installation

Clone this repository into `/site/plugins`:

`git clone https://github.com/bjo3rnf/kirby-plugin-captcha captcha`

### Required config variables and their defaults

- captcha.case_sensitive: true
- captcha.perturbation: .75
- captcha.num_lines: 8
- captcha.charset: 'ABCDEFGHJKMNPQRSTVWXYZ'

### Optional config variables

- captcha.ttf_file
- captcha.height
- captcha.width
- captcha.bg_color
- captcha.text_color
- captcha.line_color

See [Securimage documentation](https://www.phpcaptcha.org/documentation/customizing-securimage/) for further information. 

## How to use it

Add a CAPTCHA field and image to your template:<commit_msg>[DOC] Update clone command to use recursive argument<commit_after># CAPTCHA plugin

A plugin for [Kirby CMS](http://getkirby.com) to secure forms with CAPTCHAs using [Securimage](http://www.phpcaptcha.org)

## Installation

Clone this repository into `/site/plugins`:

`git clone --recursive https://github.com/bjo3rnf/kirby-plugin-captcha captcha`

### Required config variables and their defaults

- captcha.case_sensitive: true
- captcha.perturbation: .75
- captcha.num_lines: 8
- captcha.charset: 'ABCDEFGHJKMNPQRSTVWXYZ'

### Optional config variables

- captcha.ttf_file
- captcha.height
- captcha.width
- captcha.bg_color
- captcha.text_color
- captcha.line_color

See [Securimage documentation](https://www.phpcaptcha.org/documentation/customizing-securimage/) for further information.

## How to use it

Add a CAPTCHA field and image to your template:
{'fraction_non_alphanumeric': 0.10771992818671454, 'fraction_numerical': 0.0047875523638539795, 'mean_word_length': 4.825783972125436, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4751168', 'n_tokens_mistral': 588, 'n_tokens_neox': 549, 'n_words': 141}