Skip to content

Commit 4e1d851

Browse files
committed
docs: fix protect url whit $globals
1 parent 6a8a7dc commit 4e1d851

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

docs/install.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,18 @@ These can be used in any of the [normal filter config settings](https://codeigni
149149
If you want to limit all routes (e.g. `localhost:8080/admin`, `localhost:8080/panel` and ...), you need to add the following code in the `app\Config\Filters.php` file.
150150

151151
```php
152-
public $filters = [
153-
'session' => ['except' => ['login*', 'register*']],
152+
public $globals = [
153+
'before' => [
154+
// 'honeypot',
155+
// 'csrf',
156+
// 'invalidchars',
157+
'session' => ['except' => ['login*', 'register*']],
158+
],
159+
'after' => [
160+
'toolbar',
161+
// 'honeypot',
162+
// 'secureheaders',
163+
],
154164
];
155165
```
156166

0 commit comments

Comments
 (0)