Skip to content

Commit

Permalink
Merge pull request #8859 from obozdag/patch-3
Browse files Browse the repository at this point in the history
docs: Small typos in libraries/honeypot.rst
  • Loading branch information
kenjis authored May 10, 2024
2 parents 7489843 + c139547 commit 667cdcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user_guide_src/source/libraries/honeypot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Honeypot Class
##############

The Honeypot Class makes it possible to determine when a Bot makes a request to a CodeIgniter4 application,
if it's enabled in **app\Config\Filters.php** file. This is done by attaching form fields to any form,
if it's enabled in **app/Config/Filters.php** file. This is done by attaching form fields to any form,
and this form field is hidden from a human but accessible to a Bot. When data is entered into the field, it's
assumed the request is coming from a Bot, and you can throw a ``HoneypotException``.

Expand All @@ -22,7 +22,7 @@ from the ``$globals`` array, like:

A sample Honeypot filter is bundled, as **system/Filters/Honeypot.php**.
If it is not suitable, make your own at **app/Filters/Honeypot.php**,
and modify the ``$aliases`` in the configuration appropriately.
and modify the ``$aliases`` in **app/Config/Filters.php** appropriately.

********************
Customizing Honeypot
Expand All @@ -37,4 +37,4 @@ Honeypot can be customized. The fields below can be set either in
* ``$template`` - form field template used for the honeypot; default is ``'<label>{label}</label><input type="text" name="{name}" value="">'``
* ``$container`` - container tag for the template; default is ``'<div style="display:none">{template}</div>'``.
If you enables CSP, you can remove ``style="display:none"``.
* ``$containerId`` - [Since v4.3.0] this setting is used only when you enables CSP. You can change the id attribute for the container tag; default is ``'hpc'``
* ``$containerId`` - [Since v4.3.0] this setting is used only when you enable CSP. You can change the id attribute for the container tag; default is ``'hpc'``

0 comments on commit 667cdcf

Please sign in to comment.