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
* As we don't want this delay, to take in account immediately the last unban, feel free to [clear the cache in the wp-admin](http://localhost:8050/wp-admin/admin.php?page=crowdsec_plugin).
30
30
31
+
The `DOCKER_HOST_IP` environnment variable is initialized via a call to:
32
+
33
+
```bash
34
+
source ./load-env-vars.sh
35
+
```
36
+
31
37
* In a term, ban your own IP for 4 hours:
32
38
33
39
```bash
34
-
# Get the Docker host IP from inside the crowdsec container
* The [public home](http://localhost:8050/) now request you to fill a captcha.
56
62
57
63
* While you fail resolving the captcha, you'll not be able to access the website.
58
64
65
+
> Note: when you resolve the captcha in your browser, the associated PHP session is considered as sure.
66
+
> If you remove the captcha decision with `cscli`, then you add a new captcha decision for your IP, you'll not be prompted no more for the current PHP session. To view the captcha page, You can force using a new PHP session opening the front page with incognito mode.
67
+
59
68
## Stream mode, for the high traffic websites
60
69
61
70
With live mode, as you tried it just before, each time a user arrives to the website for the first time, a called is made to LAPI. If the traffic on your website is high, the bouncer will call LAPI very often.
Select the PHP version you want to use (7.2, 7.3, 7.4, 8.0) :
12
+
Before all, create a `.env` file, using:
8
13
9
14
```bash
10
-
export CS_WORDPRESS_BOUNCER_PHP_VERSION=7.2
15
+
cp .env.example .env
11
16
```
12
17
13
-
## Configure WordPress and the CrowdSec Plugin
18
+
> Note about PHP 8.0: WordPress official docker image [does not officially supports PHP 8.0](https://hub.docker.com/_/wordpress?tab=tags&page=1&ordering=last_updated) at this time. However, as the CrowdSec PHP Library does support PHP 8.0, there is a good chance that the pluggin will work fine with PHP 8.0, but we can not currently test it.
14
19
15
-
Now there is two options:
20
+
## Configure WordPress and the CrowdSec Plugin
16
21
17
-
### A) Automatic comfiguration
22
+
Now there are two options, you can fill the Wordpress installation wizard manually OR use let the e2e tests to do it for you.
18
23
19
-
Install Wordpress instance and activate plugin through the e2e tests:
24
+
### A) Automatic configuration
20
25
21
-
You can do this automatically with:
26
+
Install Wordpress instance and activate plugin launching the e2e tests (limited to the installation steps):
0 commit comments