Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Prevent others to use my dns

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

  1. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    66
    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:
    156
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    66
    Ok i will wait for other recomendations also ..
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice