summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMickaël Rémond <mremond@process-one.net>2019-05-25 11:21:30 +0200
committerGitHub <noreply@github.com>2019-05-25 11:21:30 +0200
commitb90fe4c5c93e9196b87d6ef2af1df76c5e08423b (patch)
tree409b49fae7041e1c4993487bc824790fac1fe020 /tools
parentFix last commit (diff)
Improve captcha.sh script documentation
Diffstat (limited to 'tools')
-rwxr-xr-xtools/captcha.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/captcha.sh b/tools/captcha.sh
index 560a048a..9fa4a52c 100755
--- a/tools/captcha.sh
+++ b/tools/captcha.sh
@@ -1,5 +1,18 @@
#!/bin/sh
+# This script is an example captcha script.
+# It takes the text to recognize in the captcha image as a parameter.
+# It return the image binary as a result. ejabberd support PNG, JPEG and GIF.
+
+# The whole idea of the captcha script is to let server admins adapt it to
+# their own needs. The goal is to be able to make the captcha generation as
+# unique as possible, to make the captcha challenge difficult to bypass by
+# a bot.
+# Server admins are thus supposed to write and use their own captcha generators.
+
+# This script relies on ImageMagick.
+# It is NOT compliant with ImageMagick forks like GraphicsMagick.
+
INPUT=$1
if test -n ${BASH_VERSION:-''} ; then