Blog
/ Integrations

Ahmed Saleh

2023/08/06

How to prevent password and account sharing for Learnworlds courses & websites

Learnworlds is a great platform for creating and selling online courses. It's easy to use, has a lot of features, and is affordable. But what happens when someone shares their account with others? It can be devastating to see all of your hard work go down the drain because someone shared their account with others. There's no way to see who is sharing their account and how many people are using it. This is a common problem that many online course creators face, but it doesn't have to be this way!

Rupt is an account sharing prevention software that uses a complex algorithm to detect & prevent account sharing. It's a simple and effective way to protect your courses and prevent password and account sharing for your Learnworlds courses. (And it doesn't hurt that revenue increases as you prevent account sharing!)

This is a step-by-step guide on how to prevent password and account sharing for Learnworlds courses.

Step 1: Create a Rupt account

The first step is to sign up for Rupt. You can do this by going to Rupt's website.

Step 2: Note your Rupt API Key Client ID

After you sign up, you will be redirected to your dashboard. You will see your API Key Client ID. Make note of it. Rupt API Key Client ID

Step 3: Install Rupt on your Learnworlds website

Now that you have your API Key Client ID, you can install Rupt on your Learnworlds website. To do this, you will need to add a custom code snippet to your website. You can do this by going to your Learnworlds dashboard and clicking on "Site builder" in the left-hand menu. Then click on "Custom Code". You'll see a black rectangle at the bottom of the screen with tabs for "Head" and "Body". Click on the <head> logged in (html) tab and paste in the following code snippet:

<script type="text/JavaScript">
  const script = document.createElement("script");
  script.src = "https://unpkg.com/rupt@latest/index.js";
  script.async = true;
  script.addEventListener("load", (event) => {
    const logout_url = `https://${window.location.host}/signout`;
    window.Rupt.attach({
      client_id: "xxxx-xxxx-xxxx-xxxx", // Replace with your API Key Client ID
      account: `{{ USER.ID }}`,
      email: `{{ USER.EMAIL }}`,
      metadata: {
        email: `{{ USER.EMAIL }}`,
      },
      redirect_urls: {
        logout_url: logout_url,
        new_account_url: logout_url,
      },
    });
  });
  document.head.appendChild(script);
</script>

Replace xxxx-xxxx-xxxx-xxxx with your API Key Client ID.

Step 4: Verify that Rupt is installed correctly

To verify that Rupt is installed correctly, go to your Learnworlds website and log in. Then go to your Rupt dashboard and click on "Accounts". You should see your account listed there. If you don't see it, then something went wrong with the installation process and you will need to try again.

Note that you may need to toggle between Dev and Prod environments in the Rupt dashboard to see your account. Before going live, you should create a production API Key Client ID and use that instead of the one you used for testing.

Conclusion

That's it! You've successfully installed Rupt on your Learnworlds website and can now prevent password and account sharing for your Learnworlds courses. If you have any questions or need help with the installation process, please don't hesitate to contact us at support@rupt.dev. We're happy to help!