Use the reCAPTCHA Enterprise API.
This commit is contained in:
@@ -9,6 +9,21 @@ fancy new PHP features... that's probably why.
|
||||
The site reads its configuration from `.env`. Copy `.env.example` to
|
||||
`.env`, and set the values in it.
|
||||
|
||||
## reCAPTCHA
|
||||
|
||||
To enable reCAPTCHA, set up the Google Cloud credentials:
|
||||
|
||||
1. Enable the reCAPTCHA Enterprise API in the project that owns your
|
||||
checkbox key.
|
||||
2. Set `RECAPTCHA_SITE_KEY` to that checkbox key in `.env`.
|
||||
3. Set `RECAPTCHA_PROJECT_ID` to the Google Cloud project ID.
|
||||
4. Create a Google Cloud API key for server requests.
|
||||
5. Restrict the API key to the reCAPTCHA Enterprise API.
|
||||
6. If the server has a fixed outbound IP address, restrict the API key
|
||||
to that address too.
|
||||
7. Set `RECAPTCHA_API_KEY` to the API key in `.env`.
|
||||
8. Set `SITE_URL` to the site's HTTPS address.
|
||||
|
||||
## Tests
|
||||
|
||||
The repository has three sets of tests:
|
||||
|
||||
Reference in New Issue
Block a user