Block Middle Eastern Countries

Hey everyone.
I need to block specific countries. All Middle Eastern including France, Italy, and possibly England. The goal is to have the visitor bounce off the page as soon as their IP is detected.

Someone is running bots on my website and tries to purchase our products with hundreds of stolen Credit Cards, all these payment attempts are coming from the Middle East (what a surprise) and mostly France.

99% of the payments fail, but eventually some go through. Any competent merchant here already can guess that they are later charged back and banks slap a $15 fee for me.

The issue is, I have reasonable suspicion to believe they are using my product (marketing tool) to send out mass campaigns spreading Violent Islamic ideologies. I terminate the access to these buyers, but would like to help prevent that extra 1% that slips in.

I’m not fluent in JS at all, and would like some help on how to achieve this. Thank you.

1 Like

I have a similar task: blocking an online store for some countries.
@Yisrael (Wix) Please help me figure out this issue :raised_hands:

2 Likes