The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by Nurs1927, Mar 11, 2016.

  1. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Can I block with Cpanel / WHM a site that show my content in his domain?

    Thanks!
     
  2. jonh

    jonh Well-Known Member

    Joined:
    Feb 15, 2016
    Messages:
    49
    Likes Received:
    3
    Trophy Points:
    8
    Location:
    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.
     
    Nurs1927 likes this.
  3. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  4. cotswoldphoto

    cotswoldphoto Active Member

    Joined:
    Feb 20, 2015
    Messages:
    25
    Likes Received:
    3
    Trophy Points:
    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
     
    Nurs1927 likes this.
  5. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    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,
     
    #5 Nurs1927, Mar 13, 2016
    Last edited: Mar 13, 2016
  6. cotswoldphoto

    cotswoldphoto Active Member

    Joined:
    Feb 20, 2015
    Messages:
    25
    Likes Received:
    3
    Trophy Points:
    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.
     
    Nurs1927 likes this.
  7. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

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

    Thank you.
     
    Nurs1927 likes this.
  9. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I will do it.
     
  10. Andy766

    Andy766 Member

    Joined:
    Mar 28, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
  11. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    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.
     
  12. Andy766

    Andy766 Member

    Joined:
    Mar 28, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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 ?
     
  13. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    In this rule, put your domain and their aliases. Not his domain.
     
  14. Andy766

    Andy766 Member

    Joined:
    Mar 28, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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 ?
     
  15. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    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.
     
  16. Andy766

    Andy766 Member

    Joined:
    Mar 28, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    i tried
    RewriteCond %{SERVER_NAME} !^(www\.)?mydomain\.com$
    RewriteRule ^ - [F]

    but still i can see my website from the other domain
     
  17. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Are you sure he's linking to your domain or could the entire website have been ripped and posted to some other domain?
     
    Nurs1927 likes this.
  18. Nurs1927

    Nurs1927 Active Member

    Joined:
    Nov 22, 2015
    Messages:
    34
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Yes, test it please.

    Sorry! This works for me.

    Try this:
    htaccess - Deny requests from unauthorized domains
     
  19. Andy766

    Andy766 Member

    Joined:
    Mar 28, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    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
     
    #19 Andy766, Mar 28, 2016
    Last edited: Mar 28, 2016
Loading...

Share This Page