How to block unwanted customers in my store?

Hey, everyone! How's it going?

This documentation is part of a VTEX initiative to foster knowledge within the community!

In this thread, you'll be able to understand how to block fraudulent/unwanted customers in your store.

Unfortunately, we can't guide you to press a simple button that blocks a person, or to block a user by their tax ID number (this type of action is also prevented by legal barriers), but we can offer alternatives that meet this need to stop purchases from unwanted customers.

All the alternatives stem from creating a customer cluster that will include registering these unwanted individuals in a list in your MasterData.

To create this unwanted customer cluster: The process, in short, is to create an "IsBlockedCustomer" field (which will have a True/False value, meaning it will be of the Boolean type) within the CL entity (the customer data entity in your MasterData module), which is where customer records are stored. After that, you need to choose the value to be filled in for this field on the desired records — in other words, if a customer is fraudulent/unwanted, simply update their record in MasterData by setting the "IsBlockedCustomer" field to true.

Below is our more detailed help article on the cluster creation process:

How to create a customer cluster?

After creating the cluster and registering the fraudulent customers, you can follow 3 possible approaches to stop their purchases:

1) Set up a 100% discount promotion, limited to the customer cluster you created. This cluster should contain the customers you want to place on the unwanted list.

Read this article for guidance on how to create a promotion for a customer cluster

a) Set a minimum cart value of R$0.01:

![image host](upload://woYxi4Cno0xaby76ERmGS0HIZW4.jpeg)

This way, buyers in the cluster defined as the unwanted list will be stuck in a loop with a 100% discount promotion but a minimum cart value of R$0.01. Does that make sense?

2) Use FEES. This will discourage the customer from attempting another purchase, as it will drive up the product price. It also makes it easier for the operations team to identify purchases from that customer.

Another advantage of this option is that the user won't easily notice they're on the "Block" list, which helps prevent them from creating new email addresses and placing new orders.

Here's the guide that walks through the steps involved for a better understanding:

How to create fees and taxes in your admin

3) Use a front-end store customization. This option will require a minimal effort from your partner agency to implement this rule on the front end — for example, a script that prevents the customer from proceeding to the cart.

Hope this helped — cheers!

Esse Workaround dá problema quando você coloca brinde no site.

Looks like it’s not working anymore, can you confirm?