can I stop someone from displaying my website on his domain?

jonh

Well-Known Member
Feb 15, 2016
86
5
8
NY
cPanel Access Level
Root Administrator
Text or images? If they copied and pasted the content I'm not sure you can do anything cPanel-wise at that point. You could look into the panel hotlink feature if its images from your server being displayed on their site.
 
  • Like
Reactions: Nurs1927

cotswoldphoto

Active Member
Feb 20, 2015
25
3
3
cPanel Access Level
Root Administrator
If they have copied YOUR content and stored and use it on their own site as if it were their own content, you need to issue a DMCA Takedown notice. If they have no contact details, and the whois records are also private, find out who the host is (Google 'Who Hosts this Site') and issue them with the notice
 
  • Like
Reactions: Nurs1927

Nurs1927

Well-Known Member
Nov 22, 2015
90
7
58
Spain
cPanel Access Level
Root Administrator
Thanks, for now I have two solutions.

1.- Put this code in .htaccess
Code:
RewriteEngine on
RewriteCond %{SERVER_NAME} ^(www\.)?anotherdomain\.com$ [OR]
RewriteRule ^ - [F]
or

2.- Put this deny Rule in my virtual host

Code:
<Directory /home/mydomain/public_html/>
                AllowOverride none
                Order Allow,Deny
                Allow from all
        </Directory>
It seems to work. And block the "anotherdomain" with a 403 or 404 error.

What solution is better for you?

On the other hand, it is unfair to have to pay a service (DMCA) to protect my content. I am not the culprit.

I contacted with the domain owner and I expect an answer.

Many Thanks,
 
Last edited:

cotswoldphoto

Active Member
Feb 20, 2015
25
3
3
cPanel Access Level
Root Administrator
Are they hotlinking to your images etc, or have they copied and pasted your text as well, into their own pages, or used maybe iframes? Have they copied your images and stored them on their own server? There are sample DCMA letters/emails on the web and you can do it yourself by contacting the host directly. Last time I had to do this the site owner ignored all my emails and letters, but hours after I contacted the host, the site was down completely. It came back up a few days later minus any of my content.
 
  • Like
Reactions: Nurs1927

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
It seems to work. And block the "anotherdomain" with a 403 or 404 error.

What solution is better for you?
Hello :)

This, along with reporting the issue to their web hosting provider, is likely the best course of action you can take.

Thank you.
 
  • Like
Reactions: Nurs1927

Nurs1927

Well-Known Member
Nov 22, 2015
90
7
58
Spain
cPanel Access Level
Root Administrator
Hello Andy766, and sorry.

Put this in your .htaccess
Code:
RewriteCond %{SERVER_NAME} !^(www\.)?yourdomain\.com$
RewriteCond %{SERVER_NAME} !^(www\.)?youraliases\.com$
RewriteRule ^ - [F]
Works for me.

In the SERVER_NAME you need specify the domains that you want to access to your website.
 

Andy766

Member
Mar 28, 2016
5
0
1
India
cPanel Access Level
Root Administrator
Hello Andy766, and sorry.

Put this in your .htaccess
Code:
RewriteCond %{SERVER_NAME} !^(www\.)?yourdomain\.com$
RewriteCond %{SERVER_NAME} !^(www\.)?youraliases\.com$
RewriteRule ^ - [F]
Works for me.

In the SERVER_NAME you need specify the domains that you want to access to your website.
thank you for your reply..

can u be more specific?

like my domain lets say mydomain.com and the person who displaying mywebsite has hisdomain.com

now can u plz help me with the rule ?
 

Andy766

Member
Mar 28, 2016
5
0
1
India
cPanel Access Level
Root Administrator
like

RewriteCond %{host.mydomain.com} !^(www\.)?mydomain\.com$
RewriteCond %{host.mydomain.com} !^(www\.)?host\.mydomain\.com\$
RewriteRule ^ - [F]

i found the servername and ServerAlias from httpd.conf ..

Please check and let me know if this is ok ?
 

Nurs1927

Well-Known Member
Nov 22, 2015
90
7
58
Spain
cPanel Access Level
Root Administrator
For example, if your domain is andy766.com then

Code:
RewriteCond %{SERVER_NAME} !^(www\.)?andy766\.com$
RewriteRule ^ - [F]
If you have aliases for your domain (other parked domains) , for example andy766aliases.com , then

Code:
RewriteCond %{SERVER_NAME} !^(www\.)?andy766\.com$
RewriteCond %{SERVER_NAME} !^(www\.)?andy766aliases\.com$
RewriteRule ^ - [F]
All domains that you add to this rule can access all content in public_html . Remember to put this in the .htaccess inside public_html.
 

Nurs1927

Well-Known Member
Nov 22, 2015
90
7
58
Spain
cPanel Access Level
Root Administrator

Andy766

Member
Mar 28, 2016
5
0
1
India
cPanel Access Level
Root Administrator
Are you sure he's linking to your domain or could the entire website have been ripped and posted to some other domain?
nope this is not the case... bcz if i edit anything on my site.. lets say design.. etc.. it reflects on his domain..seems like he is using some type of iframe

and most if all that person is using cloudlfare ip
 
Last edited: