You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user_guide_src/source/libraries/honeypot.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Honeypot Class
3
3
##############
4
4
5
5
The Honeypot Class makes it possible to determine when a Bot makes a request to a CodeIgniter4 application,
6
-
if it's enabled in **app\Config\Filters.php** file. This is done by attaching form fields to any form,
6
+
if it's enabled in **app/Config/Filters.php** file. This is done by attaching form fields to any form,
7
7
and this form field is hidden from a human but accessible to a Bot. When data is entered into the field, it's
8
8
assumed the request is coming from a Bot, and you can throw a ``HoneypotException``.
9
9
@@ -22,7 +22,7 @@ from the ``$globals`` array, like:
22
22
23
23
A sample Honeypot filter is bundled, as **system/Filters/Honeypot.php**.
24
24
If it is not suitable, make your own at **app/Filters/Honeypot.php**,
25
-
and modify the ``$aliases`` in the configuration appropriately.
25
+
and modify the ``$aliases`` in **app/Config/Filters.php** appropriately.
26
26
27
27
********************
28
28
Customizing Honeypot
@@ -37,4 +37,4 @@ Honeypot can be customized. The fields below can be set either in
37
37
* ``$template`` - form field template used for the honeypot; default is ``'<label>{label}</label><input type="text" name="{name}" value="">'``
38
38
* ``$container`` - container tag for the template; default is ``'<div style="display:none">{template}</div>'``.
39
39
If you enables CSP, you can remove ``style="display:none"``.
40
-
* ``$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'``
40
+
* ``$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 commit comments