Voci con l'etichetta :
Chiudi
Changelog
Chiudi
Provalo nel cloud

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. If the you want to use it, it's necessary to enable the feature in the configuration file:

  1. Get recaptcha keys associated with your domain. Go to the https://www.google.com/recaptcha/admin/create page.
    1. Click the 'Switch to create a classic key' link.
    2. Specify the Label to identify the site.
    3. Choose the reCAPTCHA v2 option in the 'reCAPTCHA type' section.
    4. In the Domains section, specify your domain.
    5. Check the 'Accept the reCAPTCHA Terms of Service' box.
    6. Click the SUBMIT button.
    7. Copy your generated site key and secret key.
  2. Open the web.appsettings.config file.
    • 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.
  3. Add the following 2 strings to web.appsettings.config replacing values with your own site key and secret key obtained at step1.
    <add key="web.recaptcha.public-key" value="your_site_key" />
    <add key="web.recaptcha.private-key" value="your_secret_key" />
    

    Save the changes.

  4. 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:

  1. Enter your portal.
  2. Click the Settings Icon icon in the right upper corner to open the 'Settings' section.
  3. Switch to the Security tab at the left-side panel, then go to the Login Settings subsection.
  4. In the Number of attempts field, set up the limit of unsuccessful login attempts by the user;
  5. In the Blocking time (sec) field, set up the time interval for blocking new login attempts;
  6. In the Check period (sec) field, set up the time interval for counting unsuccessful login attempts.
  7. Click the Save button at the bottom of the section to make the parameters you set take effect.

When the specified limit of unsuccessful login attempts is reached, for attempts coming from the associated IP address, captcha will be requested for the chosen period of time.

Try now for free Try and make your decision No need to install anything
to see all the features in action
Ti potrebbe essere d'aiuto anche...
Chiudi