Block Fraud Customers By User Role
The Fraud Prevention for WooCommerce plugin lets you add multiple blacklisted user roles so those customers cannot place an order in your shop.
You can add more than one user role and set a custom error message to show when a blacklisted user role is found. Blocking by user role is a Pro feature.
In The Article
How to set it up
You manage blocked user roles in the plugin’s blacklist settings.
Go to: Dotstore Plugins > Fraud Prevention > Blacklist Settings
Step 1: Open Blacklist Settings
- Go to Dotstore Plugins > Fraud Prevention.
- Open the Blacklist Settings tab.
- Under
Blocking Trigger Stage, selectPlace Orderso the user role is checked at checkout.
Step 2: Add blocked user roles
In the User Role field, add the roles you want to block. You can add multiple user roles, separated by commas.
Step 3: Set the user role error message
In User Role error message , enter the custom message you want to show when a blacklisted user role is found.
Step 4: Save Changes
Click Save Changes.
The plugin will now block orders placed by customers who have a blacklisted user role.
What the customer sees
When a blacklisted user role is found, the customer sees the user role error message you entered and cannot place the order.
Pro Tips
- Select
Place OrderunderBlocking Trigger Stage, or the user role rule may not run at checkout - Enter role names exactly as they appear in WordPress, separated by commas
- Write a clear message so a genuine customer knows how to contact you
Common Use Cases
Here are some popular ways store owners use this setting:
1. Block Orders from a User Role
Add a role that should not be allowed to place orders in your shop.
2. Block Several Roles at Once
Add more than one user role, separated by commas, when several roles should be blocked.
3. Show a Custom Role Block Message
Tell the customer that orders for that role cannot be placed and how to contact you.
FAQs
1. Is user role blocking available in the free plugin?
No. Blocking customers by user role is a Pro feature.
2. Can I block more than one user role?
Yes. You can add multiple user roles in the User Role field, separated by commas.
3. Can I change the message the customer sees?
Yes. Enter your text in the User Role error message field, then save your settings.