Hello aaPanel Community,
I'm facing a serious issue with my website hosted on OpenLiteSpeed.
Problem:
Someone has cloned my website and is running it on a different domain. When I make changes to my original website, those changes appear live on the cloned site too. This suggests the other domain is acting like a reverse proxy (possibly using HAProxy or similar methods).
What I Tried:
I added the following URL rewrite rules in the .htaccess (or via the OLS rewrite rules section in aaPanel) to force all traffic to redirect to my main domain:
# START Custom Hostname Redirect Rules
RewriteEngine On
RewriteCond %{HTTP_HOST} !^example\.training$ [NC]
RewriteCond %{HTTP_HOST} !^www\.example\.training$ [NC]
RewriteRule ^(.*)$ https://example.training/$1 [R=301,L]
# END Custom Hostname Redirect Rules
I restarted the OpenLiteSpeed server after saving the changes. However, the rules don't seem to work — the cloned site still loads my content.
What I Need:
Am I doing the rewrite rules correctly for OpenLiteSpeed?
Is there any additional configuration needed to block or redirect traffic from domains other than my own?
How can I protect my site from being reverse-proxied or cloned like this?
Thanks in advance for your help!