Someone pointing domain name to our web server IP

Hello,
I have someone pointing their domain name to our web server IP.
Is there a way that I can prevent their domain name from showing our website?

Thanks :slight_smile:

You could put an .htaccess file in the root of your site that if the visitor accessed your site via that domain name, and diverts it to a different page.

Something like this:


Options +FollowSymLinks
RewriteEngine on
 
RewriteCond %{HTTP_Host} ^(www\\.)?THEIRDOMAIN\\.com$ [NC]
RewriteRule ^(.*)$ http://www.SOMETHINGELSE.com/$1 [L,R=301]

Might be a better way to do it, but that’s the first thing that comes to mind.

Why wouldn’t you want someone sending you free traffic?

It’s mainly because of the other domain names in search engine results. It is also due to the fact that the website was not intended to be live yet (it is locked now) and people were visiting it - whoops :stuck_out_tongue:

You can has some of my’s revenue zee, Sir.