How to Block VPN and Data Center IP Submissions in MemberPress?

MemberPress

MemberPress does not automatically block VPN or data center IPs. To protect your membership site from automated spam registrations, you need additional layers of protection. This guide covers three approaches: OOPSpam (form-level), Cloudflare (network-level), and MemberPress built-in restrictions.

If you are seeing fake registrations, disposable emails, or payment card testing attacks, this guide shows exactly how to stop them.

Why MemberPress Needs VPN and Cloud IP Protection

MemberPress handles membership logic, payment processing, and content restriction effectively. However, it does not analyze IP reputation during registration. The plugin cannot distinguish between:

Modern spam and fraud operations use cloud infrastructure to launch automated attacks. These include fake registrations, payment card testing, and membership abuse. Standard email validation is not enough to stop these threats.

This is why IP-based filtering must happen at a different layer.

Method 1: Using OOPSpam Anti-Spam

OOPSpam (that’s us πŸ‘‹) filters MemberPress registrations in real-time before accounts are created. It analyzes every submission against a continuously updated threat database that includes:

This approach blocks fraudulent registrations without affecting legitimate visitors browsing your site.

Step-by-Step: Set Up OOPSpam for MemberPress

OOPSpam Anti-Spam

Step 1: Install the Plugin

Log in to WordPress and navigate to Plugins β†’ Add New. Search for β€œOOPSpam Anti-Spam” and click Install. Activate the plugin after installation completes.

Step 2: Connect Your API Key

Create a free account at the OOPSpam dashboard. Copy your API key from the account settings.

OOPSpam dashboard

In WordPress, go to Settings β†’ OOPSpam Anti-Spam. Paste your API key into the field provided and save.

Settings OOPSpam Anti-Spam

Step 3: Enable Spam Protection

Open the General tab in OOPSpam settings. Turn on Activate Spam Protection for MemberPress.

Enable Spam Protection for MemberPress

The plugin will automatically detect MemberPress and apply protection to registration forms.

Step 4: Configure IP Filtering

Configure IP Filtering

Navigate to the IP Filtering tab. You will see two filtering options:

Enable the filters that match your security needs and save changes.

Manual Moderation for Targeted Abuse

Some fraudulent registrations are not fully automated. Attackers may manually create accounts using rotating IPs or craft profiles that appear legitimate. OOPSpam provides Manual Moderation tools for these situations.

Manual Moderation

You can:

This gives you granular control without blocking entire networks.

Method 2: Using Cloudflare Security Rules

If your site runs on Cloudflare, you can block unwanted traffic before it reaches WordPress. This reduces server load and stops attacks at the network perimeter.

Keep in mind: Cloudflare rules apply site-wide, not just to MemberPress registration forms.

Understanding ASN-Based Blocking

Cloudflare allows you to filter traffic by ASN (Autonomous System Number). Every major network operator has a unique ASN identifier.

For example: DigitalOcean uses ASN 14061

When you block an ASN, all traffic from that network is blocked.

Step-by-Step: Create an ASN Blocking Rule

Cloudflare

  1. Log in to your Cloudflare account
  2. Select your membership site
  3. Navigate to Security β†’ Security Rules β†’ Custom Rules
  4. Click Create Rule
  5. Set the field to AS Num and enter the ASN. Example: (ip.geoip.asnum eq 14061)
  6. Choose an action:
    • Managed Challenge – Recommended for testing (presents a verification challenge)

    • Block – Use when confident about the impact

  7. Name your rule clearly and deploy

Warning: Blocking entire ASNs can prevent legitimate members from accessing your site. This includes users on corporate VPNs, privacy-focused services, and businesses hosted in cloud environments.

Method 3: MemberPress Built-in Protections

MemberPress includes built-in features that help manage malicious registrations. While these do not directly block VPNs or data centers, they provide additional layers of protection.

Registration Restrictions (Growth/Scale Plans)

MemberPress allows you to block specific IP addresses or email domains. You can apply these restrictions globally or per membership level.

Setting Up Registration Restrictions

Registration Restrictions

Navigate to MemberPress β†’ Settings β†’ Restrictions in your WordPress dashboard.

You can enable:

Most of these restrictions can also be enforced using OOPSpam Manual Moderation. You can block individual IP addresses, email addresses, and entire domains, as well as whitelist trusted users.

The only control that cannot be replicated inside OOPSpam is the Age Restriction, which is handled directly by MemberPress during registration.

Global vs Membership-Level Restrictions

Global vs Membership-Level Restrictions

Global restrictions apply to your entire site. Set them in MemberPress β†’ Settings β†’ Restrictions.

If you apply restrictions on individual memberships, those will override global settings. For example, if you block an IP globally but allow it for one membership, the membership-specific setting takes priority.

You can also set restrictions for coupons and corporate accounts, giving you complete control over how members and sub-accounts register.

Final Takeaway

MemberPress provides powerful membership management, but it was not designed to fight infrastructure-based spam and fraud on its own.

For complete protection:

Together, these methods protect your membership site from automated abuse while maintaining a smooth experience for legitimate members.

Spam Protection for WordPress, Zapier, Make and more.

Since our launch in 2017 we’ve been perfecting our API to be the trusted option for small businesses to enterpriseβ€” and continue to stick to our values of being the accessibility and privacy-friendly option. Give us a shot!

Try OOPSpam for free β†’ Try our WordPress plugin for free β†’

βœ“ No credit card required βœ“ Cancel anytime

Enjoy Reading This Article?

Here are some more articles you might like to read next: