Skip to content

NodeBB: hCaptcha

Solved Configure
15 2 3.2k 1
  • Hi,
    Does anyone have any instructions on the easy implementation of hCaptcha on the new user registration page?

  • Hi,
    Does anyone have any instructions on the easy implementation of hCaptcha on the new user registration page?

    @mventures You’ll need the plugin nodebb-plugin-spam-be-gone which once installed will provide several mechanisms for protection

    086d30f6-a52b-4ebe-8eca-ea03bdcc5242-image.png

    You’ll want the hCaptcha module, and you should follow the instructions here

    https://dashboard.hcaptcha.com

    c7cd76ef-4ea5-49a7-9d56-43d3cd8bc063-image.png

    3ab50e3e-c480-4fe1-b947-ff54e0f4c2b9-image.png

  • phenomlabundefined phenomlab has marked this topic as solved on
  • Thanks for that! I have installed the plugin but where exactly do I go to see the different mechanisms offered and input the values? I am not able to find the configuration settings as seen on your 1st screenshot.

  • Thanks for that! I have installed the plugin but where exactly do I go to see the different mechanisms offered and input the values? I am not able to find the configuration settings as seen on your 1st screenshot.

    @mventures Sorry - I should have mentioned that to use

    https://dashboard.hcaptcha.com/

    You’ll need to create an account there first. From that point, you’ll be able to use the screenshots I provided.

  • Finally, I got a chance to work on this one but it didn’t go as planned, all because NodeBB wouldn’t save the page every time I click the Save button. I tried on both Safari and Chrome. Please see below. Do you know what the issue is?

    Screen Shot 2023-04-20 at 5.21.18 pm.png

  • Finally, I got a chance to work on this one but it didn’t go as planned, all because NodeBB wouldn’t save the page every time I click the Save button. I tried on both Safari and Chrome. Please see below. Do you know what the issue is?

    Screen Shot 2023-04-20 at 5.21.18 pm.png

    @mventures It won’t save because you first have to enable the “Stop Forum Spam” tab and subscribe for a (free) key

    ece8b1fb-a356-4d55-9429-9d2b05765cb1-image.png

    I’ve enabled this, and provided you with my key temporarily, which you should change

    I then enabled hCaptcha using my details, and registered your site with my hCaptcha account

    8860d20d-ab1e-43bf-b71d-d877c2de0754-image.png

    This now works as intended

    98265af7-90f4-461a-bc33-5ab98912fce7-image.png

    You should of course register your own site and secret keys rather than use mine 🙂

  • @mventures It won’t save because you first have to enable the “Stop Forum Spam” tab and subscribe for a (free) key

    ece8b1fb-a356-4d55-9429-9d2b05765cb1-image.png

    I’ve enabled this, and provided you with my key temporarily, which you should change

    I then enabled hCaptcha using my details, and registered your site with my hCaptcha account

    8860d20d-ab1e-43bf-b71d-d877c2de0754-image.png

    This now works as intended

    98265af7-90f4-461a-bc33-5ab98912fce7-image.png

    You should of course register your own site and secret keys rather than use mine 🙂

    @phenomlab THANK YOU SO MUCH! Really much appreciated again.
    I shall definitely change everything and not use your values.

    I have the hCAPTCHA values already but not the stopforumspam one. I signed up on that site but I am yet to receive the password by email. Have written to the admin there and waiting for a response.

  • @phenomlab THANK YOU SO MUCH! Really much appreciated again.
    I shall definitely change everything and not use your values.

    I have the hCAPTCHA values already but not the stopforumspam one. I signed up on that site but I am yet to receive the password by email. Have written to the admin there and waiting for a response.

    @mventures Ok, no real hurry - just when you can.

    EDIT - I also updated your forum to RC2 as it was still at RC1.

  • @mventures Ok, no real hurry - just when you can.

    EDIT - I also updated your forum to RC2 as it was still at RC1.

    @phenomlab
    Thank you but what are RC1 and RC2?
    How do you find out what needs updating?

    And I am still waiting on the StopForumSpam password 😞

  • @phenomlab
    Thank you but what are RC1 and RC2?
    How do you find out what needs updating?

    And I am still waiting on the StopForumSpam password 😞

    @mventures the term RC refers to “Release Candidate” which is the version just before software is ready to release to market. Essentially, this signifies that software has successfully passed though both alpha and beta before reaching RC stage.

    For the record, there were over 99 beta releases of NodeBB before the devs were satisfied it was ready for release candidate 1 - let alone 2.

    The final release will tell you in the ACP when an upgrade is available.

  • @phenomlab
    Thank you but what are RC1 and RC2?
    How do you find out what needs updating?

    And I am still waiting on the StopForumSpam password 😞

    @mventures said in NodeBB: hCaptcha:

    And I am still waiting on the StopForumSpam password

    You might want to check your junk email. Typically, these emails are delivered in minutes and not days.

  • @mventures said in NodeBB: hCaptcha:

    And I am still waiting on the StopForumSpam password

    You might want to check your junk email. Typically, these emails are delivered in minutes and not days.

    @phenomlab Yes, but it never arrived. So, today I tried again and it worked. I have signed up for the free API key but I am yet to get the email with the details. However, they have the option to get the key from their website which I now have. I shall try using it and see if it works over your one.

  • @phenomlab Yes, but it never arrived. So, today I tried again and it worked. I have signed up for the free API key but I am yet to get the email with the details. However, they have the option to get the key from their website which I now have. I shall try using it and see if it works over your one.

    @mventures Screen Shot 2023-04-27 at 12.17.14 pm.png
    Should I tick one of these? I know it’s optional but if there is a benefit in someway, I can tick.

  • Update: I have replaced your values with mine. It seems to be working now.

  • @mventures Screen Shot 2023-04-27 at 12.17.14 pm.png
    Should I tick one of these? I know it’s optional but if there is a benefit in someway, I can tick.

    @mventures none that I know of. I don’t recall selecting these either for mine.


Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Nodebb and emails

    Solved Configure nodebb
    27
    5 Votes
    27 Posts
    7k Views
    @Panda it will use SMTP. In all cases, I never use any plugin to send email. I’ll always send it raw.
  • Opening links in nodebb widget

    Solved Configure nodebb
    6
    4 Votes
    6 Posts
    2k Views
    A more efficient way of including this would be to not over complicate it and leverage a standard iframe (providing the CSP headers of the remote site permit this) like below <iframe src="https://www.classmarker.com/online-test/start/?quiz=gag66aea7922f0a5" width="700" height="800"></iframe> This works first time every time on your site as intended.
  • NodeBB: Creating the Swatch modes

    Solved Configure swatch
    2
    0 Votes
    2 Posts
    867 Views
    @mventures the swatch feature you refer to isn’t a NodeBB plugin, but a utility that I wrote that handles this. It is available for v2 (as you can see here) but I’ve stopped developing and releasing the code because it has been entirely rewritten to work for v3. If you’d like the code, this is possible, but you’ll need to upgrade to v3 first.
  • NodeBB: Creating pages

    Solved Configure nodebb create page
    9
    0 Votes
    9 Posts
    3k Views
    OK, I think I have figured out how to place a link in the footer which will click to a new page.
  • nodebb loading emojis

    Solved Configure nodebb emojis
    16
    1
    1 Votes
    16 Posts
    4k Views
    @DownPW sure. Let me have a look at this in more detail. I know nginx plus has extensive support for this, but it’s not impossible to get somewhere near acceptable with the standard version. You might be better off handling this at the Cloudflare level given that it sits in between the requesting client and your server.
  • restarting nodebb on boot

    Unsolved Configure nodebb
    3
    1 Votes
    3 Posts
    2k Views
    @eeeee said in restarting nodebb on boot: can I just run nodebb under nodemon for auto restarts? It’s a better method. Nodemon just looks for file system changes and would effectively die if the server was rebooted meaning you’d have to start it again anyway. Systemd is the defacto standard which is how the operating system interacts in terms of services, scheduled tasks etc.
  • MailGun Not Working NodeBB

    Solved Configure mail mailgun
    6
    1 Votes
    6 Posts
    2k Views
    @phenomlab did it i did not create smtp user on mailgun. everything is working now. [image: 1667569376261-6cc6061f-ed5d-41f6-8eb7-5d98f98b3706-image.png]
  • Podcast Share NodeBB

    Solved Configure podcast nodebb
    15
    4 Votes
    15 Posts
    4k Views
    @cagatay You could experiment with nodebb-plugin-ns-embed but I expect the x-origin tag on the remote site to prevent playback.