view mod_captcha_registration/README.markdown @ 4575:5b4f43b90766

mod_measure_malloc: port to most recent trunk statistics API
author Jonas Schäfer <>
date Tue, 25 May 2021 19:01:54 +0200
parents 8de50be756e5
line wrap: on
line source

- 'Stage-Beta'
summary: provides captcha protection for registration form


Prosody-captcha is a little modification of prosody's
"mod\_register.lua" module that provides captcha protection for
registration form.


First of all you should build and install lua bindings for libgd —

Then clone repsository lua-captcha:

    $ git clone

install it:

    $ make install


After that you would configure prosody. This module requires from you 4
fields, you should add this into your VirtualHost entry.

    captcha_config = {
            dir = "/tmp"; -- Directory used to storage captcha images. Please make sure prosody user allowed to write there.
            timeout = 60; -- Timeout when captcha will expire
            web_path = "challenge"; -- Web path used to separate main prosody site from itself modules.
            font = "/usr/lib/prosody/FiraSans-Regular.ttf" -- Font used for captcha text

You can run script "install.lua" to install this or instead of that
while prosody developers didn't accepted "dataforms" changes you should
replace standard prosody "dataforms.lua" located in ubuntu in
/usr/lib/prosody/util by another one from this repository. You should do
the same thing with "mod\_register.lua" located in ubuntu in

After this all you can try to register on your server and see the


-   Maybe use recaptcha instead of libgd.