Wiki source code of Captcha configuration
Last modified by Nikita Petrenko on 2025/06/24 18:09
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
1.3 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| 2 | {{toc/}} | ||
| 3 | {{/box}} | ||
| |
26.2 | 4 | |
| |
8.2 | 5 | = Add Captcha for Registration = |
| |
1.3 | 6 | |
| 7 | {{info}} | ||
![]() |
13.5 | 8 | This option is useful when you allow guests to register as wiki users. |
| |
1.3 | 9 | {{/info}} |
| 10 | |||
| |
26.2 | 11 | Log in as Administrator, click the {{image reference="DrawerMenuIcon.png"/}} button to open the drawer menu, then click on "Administer Wiki": |
| 12 | |||
| 13 | ((( | ||
| 14 | {{image reference="AdministerWikiMenu.png" size="small"/}} | ||
| |
8.4 | 15 | ))) |
| |
8.2 | 16 | |
| |
26.2 | 17 | In the wiki administration page, click on the "Registration" link from the vertical menu to the left. |
| 18 | |||
| 19 | ((( | ||
| 20 | {{image reference="RegistrationAdmin.png" size="small"/}} | ||
| |
8.4 | 21 | ))) |
| 22 | |||
| |
26.2 | 23 | Next, scroll down through the options. Find and check the option **REQUIRE CAPTCHA TO REGISTER**: |
| 24 | |||
| 25 | ((( | ||
| 26 | {{image reference="RequireCaptchaRegistration.png" size="medium"/}} | ||
| |
8.4 | 27 | ))) |
| 28 | |||
| |
26.2 | 29 | Then, in the wiki administration page, click on the "Rights" link from the vertical menu to the left. |
| 30 | |||
| 31 | ((( | ||
| 32 | {{image reference="AdministrationRights.png" size="small"/}} | ||
| |
8.4 | 33 | ))) |
| 34 | |||
| |
26.2 | 35 | Next, click on the radio button "Users". Make sure unregistered users have the **View** and **Register** right set: |
| 36 | |||
| 37 | ((( | ||
| 38 | {{image reference="ViewRegisterRights.png" size="medium"/}} | ||
| |
8.4 | 39 | ))) |
| 40 | |||
| |
26.2 | 41 | To see the results of these settings, logout and click on "Register" in the navigation bar: |
| 42 | |||
| 43 | ((( | ||
| 44 | {{image reference="Register.png" size="small"/}} | ||
| |
8.4 | 45 | ))) |
| 46 | |||
| |
26.2 | 47 | Now visitors can add the details in the registration form, including Captcha: |
| 48 | |||
| 49 | ((( | ||
| 50 | {{image reference="RegistrationForm.png" size="medium"/}} | ||
| |
8.4 | 51 | ))) |
| 52 | |||
| |
8.2 | 53 | = Add Captcha for comments = |
| 54 | |||
| 55 | {{info}} | ||
![]() |
13.5 | 56 | This setting is needed when unregistered users want to post a comment. |
| |
8.2 | 57 | {{/info}} |
| 58 | |||
| |
26.2 | 59 | Log in as Administrator, click the {{image reference="DrawerMenuIcon.png"/}} button to open the drawer menu, then click on "Administer Wiki": |
| 60 | |||
| 61 | ((( | ||
| 62 | {{image reference="AdministerWikiMenu.png" size="small"/}} | ||
| |
1.3 | 63 | ))) |
| 64 | |||
| |
26.2 | 65 | In the wiki administration page, click on the "Rights" link from the vertical menu to the left. |
| 66 | |||
| 67 | ((( | ||
| 68 | {{image reference="AdministrationRights.png" size="small"/}} | ||
| |
1.3 | 69 | ))) |
| 70 | |||
| |
26.2 | 71 | Next, click on the radio button "Users" to display the access rights for Unregistered users and give them **View** and **Comment** right: |
| 72 | |||
| 73 | ((( | ||
| 74 | {{image reference="RightsToGuests.png" size="medium"/}} | ||
| |
1.3 | 75 | ))) |
| 76 | |||
| |
26.2 | 77 | Then, pick the option **Require unregistered users to solve a captcha when posting a comment on a page**: |
| 78 | |||
| 79 | ((( | ||
| |
8.3 | 80 | {{image reference="CaptchaRight.png"/}} |
| |
1.3 | 81 | ))) |
| 82 | |||
| |
26.2 | 83 | Finally, logout, move to comment section of XWiki page and check the result: |
| 84 | |||
| 85 | ((( | ||
| 86 | {{image reference="CaptchaComment.png" size="large"/}} | ||
| |
1.3 | 87 | ))) |
