- Home
- Workspace
- Administration
- Reinforcing security
- Configuring recaptcha in the server version
Configuring recaptcha in the server version
reCAPTCHA allows you to protect the portal against brute-force attacks by distinguishing human users from automated access.
Enabling reCAPTCHA
By default, this feature is disabled in the server version. To enable it, modify the configuration file as follows:
- Get reCAPTCHA keys associated with your domain. Go to the https://www.google.com/reCAPTCHA/admin/create page.
- Click Switch to create a classic key.
- Specify the Label to identify the site.
- Select reCAPTCHA v2 in the reCAPTCHA type section.
- In the Domains section, specify your domain.
- Check the Accept the reCAPTCHA Terms of Service checkbox.
- Click SUBMIT.
- Copy your generated site key and secret key.
- Open the
web.appsettings.configfile.- For Windows version, it can be found in the
c:\Program Files\Ascensio System SIA\onlyoffice\WebStudio\folder. - For deb, rpm packages, it can be found here:
/var/www/onlyoffice/WebStudio/web.appsettings.config. - For Docker version, it can be found within the CommunityServer container:
/var/www/onlyoffice/WebStudio/web.appsettings.config.
- For Windows version, it can be found in the
- Add the following two lines to
web.appsettings.config, replacing the values with your site key and secret key obtained in step 1.<add key="web.reCAPTCHA.public-key" value="your_site_key" /> <add key="web.reCAPTCHA.private-key" value="your_secret_key" />Save the changes.
- Restart the application.
- For Windows version, restart the site in IIS.
- For deb, rpm packages, use the following command:
sudo service monoserve restart. - For Docker version, restart the CommunityServer container or execute the following command within the CommunityServer container:
systemctl restart monoserve.service.
Adjusting security settings
Once the feature is enabled in the configuration file, the owner or full access admin can adjust the portal settings:
- Sign in to your portal.
- Click the
icon in the right-upper corner to open Settings section. - Select the Security tab in the left-side panel, then go to the Login Settings subsection.
- In the Number of attempts field, set up the limit of unsuccessful login attempts by the user;
- In the Blocking time (sec) field, set the duration for blocking new login attempts;
- In the Check period (sec) field, set the time window for counting unsuccessful login attempts.
- Click Save at the bottom of the section to apply the settings.
When the specified limit of unsuccessful login attempts is reached, for attempts originating from the associated IP address, a reCAPTCHA challenge will be presented for the configured duration.
Article with the tag:
Browse all tags