This is a weird one, we've just noticed that someone has been pointing a domain at one of our sites for the last four years. It looks like they're just doing it via a cname on cloudflare pointed to the domain, rather than pointing to the server (as we only allow access via the main domain, plus we changed server IP at one point).
I'm not really sure what their game is, or if it's just a mistake, but either way I'd like to stop them doing it.
I've tried to use htaccess to restrict access via anything other than the main domain, but that doesn't seem to do anything.
Any suggestions?
I'm not really sure what their game is, or if it's just a mistake, but either way I'd like to stop them doing it.
I've tried to use htaccess to restrict access via anything other than the main domain, but that doesn't seem to do anything.
Any suggestions?


... an alternative and quicker approach might be just to report them to Cloudflare and say they are fraudulently presenting your site under an un-authorised domain name as if it is their own and they'll probably sort it out. They're normally pretty good at sorting out abuse on their network.