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.

Prevent others to use my dns

Discussion in 'Bind / DNS / Nameserver Issues' started by ASTRAPI, Jan 23, 2010.

  1. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    How can i prevent a user to point his domain to my forum ip and look his domain as mine?

    I use my own dns and someone turn his domain to my site and when yo uuse his domain is exactly my site.. :(

    Thank you
     
  2. nwilkens

    nwilkens Well-Known Member

    Joined:
    May 4, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Monroe MI
    cPanel Access Level:
    DataCenter Provider
    At least you are getting more traffic hopefully!

    You could check the referring host, and have it 301 redirect to your host if it is not from you.

    Create or update a .htaccess file in your web directory. The contents could be something like:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} !^http://(.+\.)?yourdomain\.com/ [NC]
    RewriteRule (.*)  http://yourdomain.com$1 [R]
    
    Note, this is untested and just a quick thought of how you might be able to achieve your goal.
     
  3. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Ok i will wait for other recomendations also ..
     
Loading...
Similar Threads - Prevent others dns
  1. Mayers
    Replies:
    3
    Views:
    568

Share This Page