Hi we have found few sites that clone our site on fly.
Is there any solutions how we can stop doing it?
https://cyazozete.shop/?_=%2F%23xPOmt7rY7D53%2FnVLCF96KlzxSJSZ
https://beimulipe.shop/?_=%2F%23L4TbcHxqH1lEJrQO9l5T3k44zkPg
the original site is
They clone every page, and change canonical, links almost everything. If I try to use some PHP code
<?php if($_SERVER['SERVER_NAME'] !== 'betpokies.com'): ?>
<meta http-equiv="refresh" content="0; url=<?= $page->url() ?>">
<?php endif ?>
itβs not working on these sites.
But if I use JS it is working
x.addEventListener('readystatechange',function(){
const url = 'https://your/request/url';
if(this.responseURL != url){
alert('redirected');
}
});
Is there any other ways to do it more correctly?