@@ -3,7 +3,7 @@ Honeypot Class
33##############
44
55The Honeypot Class makes it possible to determine when a Bot makes a request to a CodeIgniter4 application,
6- if it's enabled in `` Application \Config\Filters.php`` file. This is done by attaching form fields to any form,
6+ if it's enabled in ** app \C onfig\F ilters.php** file. This is done by attaching form fields to any form,
77and this form field is hidden from a human but accessible to a Bot. When data is entered into the field, it's
88assumed the request is coming from a Bot, and you can throw a ``HoneypotException ``.
99
@@ -20,8 +20,8 @@ from the ``$globals`` array, like:
2020
2121.. literalinclude :: honeypot/001.php
2222
23- A sample Honeypot filter is bundled, as `` system/Filters/Honeypot.php `` .
24- If it is not suitable, make your own at `` app/Filters/Honeypot.php `` ,
23+ A sample Honeypot filter is bundled, as ** system/Filters/Honeypot.php ** .
24+ If it is not suitable, make your own at ** app/Filters/Honeypot.php ** ,
2525and modify the ``$aliases `` in the configuration appropriately.
2626
2727********************
@@ -31,7 +31,7 @@ Customizing Honeypot
3131Honeypot can be customized. The fields below can be set either in
3232**app/Config/Honeypot.php ** or in **.env **.
3333
34- * ``hidden `` - true| false to control visibility of the honeypot field; default is ``true ``
35- * ``label `` - HTML label for the honeypot field, default is 'Fill This Field'
36- * ``name `` - name of the HTML form field used for the template; default is 'honeypot'
37- * ``template `` - form field template used for the honeypot; default is '<label>{label}</label><input type="text" name="{name}" value=""/>'
34+ * ``$ hidden `` - `` true `` or `` false `` to control visibility of the honeypot field; default is ``true ``
35+ * ``$ label `` - HTML label for the honeypot field, default is `` 'Fill This Field' ``
36+ * ``$ name `` - name of the HTML form field used for the template; default is `` 'honeypot' ``
37+ * ``$ template `` - form field template used for the honeypot; default is `` '<label>{label}</label><input type="text" name="{name}" value="">' ``
0 commit comments