Forum Moderators: phranque

Message Too Old, No Replies

Another websites DNS pointing at mysite

How to change the apache config so they cant

         

PCSceo

6:10 pm on Aug 11, 2006 (gmt 0)

10+ Year Member



Recently we noticed another website has their DNS pointing at our site. When their domain name is entered, out site comes up.

We have been trying to figure out how to configure apache so that it will only pull up our site with our domain name in front of it. we tried a lot of different config changes, so far nothing is working.

I would appriciate any help as I am fearing a SE penality.

Thanks!

jdMorgan

6:22 pm on Aug 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you verified that the other domain's DNS does in fact point to your server's IP address and that this is not a simple case of the other site putting your pages in a frame or into an iFrame?

Please confirm that you are on a dedicated (non-shared) server with a unique IP address.

Jim

PCSceo

6:27 pm on Aug 11, 2006 (gmt 0)

10+ Year Member



Yes, his DNS is pointing at mine. I have a dedicated server at godaddy with my own dedicated ip's. Seems that godaddy is reusing an older ip that this site used to have. I did a whois, all phone numbers and e-mail addys are no longer in service so I cant even contact the site owner.

thanks!

jdMorgan

6:45 pm on Aug 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you change your configuration to name-based virtual hosting, this will make the server check the Host header sent with HTTP/1.1 requests, and reject requests for the other (old/previous) domain name.

Alternatively, you could use mod_rewrite to check the HTTP_HOST header, and redirect or Forbid requests that include the old/previous domain name.

Jim