All things Shopify and commerce
We have a problematic customer that we no longer wish to deal with. Is there a way to block/blacklist customers in Shopify? Fraud Filter does not work because it permits orders to be placed and thus we're charged transaction fees. We need a block/spam filter in place pre-checkout. Can anyone advise?
Hi @StevetUK,
In order to ensure that you are no longer have to deal with that specific customer what you can do is simply disable the account of that specific customer from the Shopify admin panel. And once the account is disabled he/she won't be able to login again to your store using the existing credentials.
Follow the steps below to disable the customer account:
1. Open the Shopify admin panel.
2. Open customers sections by clicking on the Customer option from below the products on the left hand side.
3. Once the customer page is opened, then search for that specific customer using his email id or name.
4. Once you have found the customer click on his name and open the customer information page.
5. Click on disable account at the top as shown in image.
6. save the details, Once you have done this the customer wont be able to login back to the account until and unless he re-registers as a new customer using the same email address.
For more reference you can refer to the this article.
Thanks
Hi there, thanks for the reply and the instructions - unfortunately this probably won't work as we don't require customers to create an account to check out: it's optional for them as we find people see account creation as a barrier to making a purchase.
Can you advise on an alternate approach to blocking a customer by email address for example?
You could prevent a customer from logging in with that email address, but you'd still need to use the option to "Require log-in before checkout" to make sure this customer can't complete purchases. I don't think there's a workaround to that, if there is I'd like to know. Otherwise the customer can always reach the checkout before logging in and then use his/her email address there to complete the purchase.
I do not see "disable account" on the customer's page. And I would not want a specific customer to re-register again. Please advise how to block a customer from being able to place another order. Thank you.
There’s finally a fix to this! I figured I’d post because I’ve been looking for years and hope it’ll help you all. We’ve blocked people on fraud filter before but we would get charged all the fees and it was super frustrating - like OP posted here. Now we changed our payment settings to authorize when fulfilled (this is new option I haven’t seen before) and if an order is canceled by fraud filter before it’s fulfilled, then we don’t get charged any transaction fees because the payment is voided before it’s charged. This saved me so much money in fees in the last month alone!!! I attached a photo of the setting. Choose the second one, not the one that shows chosen in the photo.
Hi Steve, it is possible to block or blacklist a problematic customer and avoid transaction fees in Shopify easily by using the Cart Lock app. For this you have to do as follows:
Now the blacklisted customer will be blocked from placing any order.
Hi mate,
I came up with this solution: you add a tag to the specific client, and the code redirects them away from your site. It works perfectly.
{% if customer %}
{% if customer.tags contains 'Fraud' %}
<script>
window.location.href = "https://www.fraud.com";
</script>
{% endif %}
{% endif %}
Thank you very much!
Smart solution. It works like a charm.
In which template or section do I add the code?
In theme.liquid
Thank you, but for me that didn't work. I added the tag to my test customer and could still click me through the checkout. For checkout in our shop it is not required to be a registered customer. Is this maybe the issue?
Hello, yes, you’ve got it right. This method works only with registered customers, as it identifies them through a tag and prevents access to the shop.
If we’re talking about a visitor who isn’t logged in, we’ll need at least their IP address to block them by IP.
For example:
<script>
fetch('https://api.ipify.org?format=json')
.then(response => response.json())
.then(data => {
const blockedIP = '193.47.137.100';
if (data.ip === blockedIP) {
window.location.href = 'https://google.com';
}
})
.catch(err => console.error('Error fetching IP:', err));
</script>
To identify the IP of the specific visitor, you’ll need a third-party service or analytics tool for assistance.
Where in theme. liquid should the code be placed?
Hi, place it somewhere inside the <head> tag.
Hi Viktor,
This very same customer has been trying to bulk purchase on my store too. I have tagged 'fraud' to the account. Do I have to write any code? I am not good with that.
Thanks
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025