How can I remove sync from a cloned ecommerce store?


I used .replaceAll to remove the . character because the cloned shopify domain was replacing all occurrences of our domain with their domain before the script was being run in the browser. This causes the site to be stuck in a reloading loop if not using the correct domain.


@David_Sullivan This is an excellent script, but it doesn’t seem to be working for me in regards to the domains that are cloning our website. Here is my script:


*I changed the permanent domain for this post

I added an ‘OR’ operator because we have two live domains right now as we’re getting ready to transition to a new name. I tried it without the ‘OR’ operator and it worked to redirect our second domain, so I know the code works. But when I checked the fraudulent cloned domains, they don’t do anything. The script still shows in the code, but it’s being ignored for some reason.

Here is one of the cloned domains: circlehfishing.com

Any ideas?