Introduction

Get started with Secure User Registration by PureDevs in just a few minutes. This quick start guide covers the essential steps to protect your WordPress and WooCommerce registration forms from CSRF attacks and bot registrations.

Step 1: Install and Activate

Install the plugin from the WordPress plugin repository:

  1. Go to Plugins → Add New
  2. Search for “Secure User Registration by PureDevs”
  3. Click Install Now, then Activate

Once activated, your registration forms are immediately protected with basic CSRF security.

Step 2: Access Plugin Settings

Navigate to the plugin settings page:

  1. Go to Settings → Safe Registration in your WordPress admin menu
  2. You’ll see the General Settings page with all configuration options

Step 3: Enable Protection

Configure which registration forms to protect:

  1. Under Enable section, check:
    • Protect user Registration – for WordPress registration forms
    • Protect WooCommerce user Registration – for WooCommerce registration forms
  2. Enable the Enable Nonce checkbox to add custom nonce field protection
What is a Nonce?

A nonce (number used once) is a security token that helps prevent CSRF attacks by verifying that form submissions are legitimate and coming from your site.

Step 4: Configure Email Blocking (Optional)

Block registrations from specific email addresses or domains:

  1. In the Email/Domain Blocklist field, enter email addresses or domains
  2. Use commas to separate multiple entries
  3. Examples:
    • spam@example.com – blocks a specific email
    • @test.com – blocks all emails from test.com domain
    • @example.com,@test.com – blocks multiple domains

Step 5: Set Up Google reCAPTCHA (Optional)

Add reCAPTCHA to protect against automated bot registrations:

  1. Get your reCAPTCHA keys from Google reCAPTCHA Admin
  2. Check the Enable Captcha checkbox
  3. Enter your Site Key in the Site Key field
  4. Enter your Secret Key in the Secret Key field
Important

Use reCAPTCHA v2 (Checkbox) for best compatibility with this plugin. The plugin supports the standard “I’m not a robot” checkbox.

Step 6: Customize Error Messages (Optional)

Personalize the error messages shown to users:

  • Invalid nonce error message – Shown when nonce validation fails
  • Email/Domain blocklist error message – Shown when blocked email is used
  • Captcha error message – Shown when reCAPTCHA validation fails

Default messages are provided, but you can customize them to match your site’s tone and language.

Step 7: Save and Test

  1. Click Save Changes at the bottom of the settings page
  2. Log out of WordPress
  3. Visit your registration page to verify:
    • reCAPTCHA appears if enabled
    • Blocked emails show error messages
    • Forms are protected from CSRF attacks
You’re All Set!

Your WordPress and WooCommerce registration forms are now secured against CSRF attacks and unwanted bot registrations.

Next Steps

Now that you’ve completed the quick start setup, explore these topics: