Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Google reCaptcha in Unity

Discussion in 'Multiplayer' started by AlaaKhallouf, Dec 19, 2022.

  1. AlaaKhallouf

    AlaaKhallouf

    Joined:
    Dec 14, 2022
    Posts:
    6
    I couldn't find anything related to this, but is there any form of Captcha system that can be integrated into unity engine?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,629
    almost certainly but you probably have to do so within a webview

    honestly though, there is just no good reason to put that in a unity app
    if its a webgl build the captcha would be easier to add on the website itself, either before launching the app or redirecting the user to a webpage to do whatever task requires a captcha
    and for all other purposes, the process of downloading and running the app is confirmation enough that you are dealing with a human being. and i wager this is almost certainly true for a webgl app since navigating those isn‘t easily scriptable either.
     
  3. AlaaKhallouf

    AlaaKhallouf

    Joined:
    Dec 14, 2022
    Posts:
    6
    we're having a problem with bots registering new accounts which is why a a captcha is needed.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    3,629
    It's actually possible that those "bots" (scripts) are human slave workers. There is a big market for that, specifically in Asia. However, with Autohotkey scripts one could easily script a click-sequence though.

    To check which one you are dealing with, you could add a simple text entry field (and make it appear only randomly upon login). Something along the lines of:

    "Confirm your humanitah:
    How much is x (operator) y ?"
    Like: 4+3 or 3*5.

    And the user has to enter this math equation result in a text field.

    It will take a scripter some time to implement a fully working script for this. And you could change or improve it by adding more random trivia questions everyone should know every once in a while.

    Like "Which country's climate is coldest?" (Choices: Brazil, Australia, Alaska)