How do I block someone else's domain pointing to my Apache hosted website?

10 posts / 0 new
Last post
#1 Wed, 10/18/2017 - 11:04
anthonyinit2012

How do I block someone else's domain pointing to my Apache hosted website?

Hi I am running my website in Linux VPS with dedicated IP few weeks ago I found someone else domain is pointing to my website whatever i do this my website other fake website immediately pics up automatically. whenever i stop my server the fake or duplicate website also stops (hosted with cloudflare) this is really strange and i don't know what is happening

please guys kindly help me out here

Using Debian on my VPS with virtualmin

thank you

Wed, 10/18/2017 - 16:19
noisemarine

You can't really (after all, your site is freely accessible on the Internet..), but you can take some action. There's lots of ways, and it depends on how they are doing it. The easiest thing I can do is point you at Google.

https://www.google.com.au/search?dcr=0&q=how+stop+another+website+from+s...

Mon, 10/23/2017 - 05:16
unborn
unborn's picture

@anthonyinit2012 you can check ip of fake website which is proxying your real one and then on your server you can add ip to htaccess to deny access - this is very simple solution, fake site should then display 403 error. Or you can redirect that fake website ip to somewhere else like another website or even localhost ip..

Configuring/troubleshooting Debian servers is always great fun

Sat, 10/28/2017 - 01:40
anthonyinit2012

please give me the correct code that i can put in my .htaccess file

Tue, 10/31/2017 - 08:33 (Reply to #4)
unborn
unborn's picture

you can put offensive ip into your htaccess like this:

<RequireAll>
    Require all granted
    Require not ip 10.252.46.165 # replace this IP with the IP you would like to block it
</RequireAll>

You can found more info here: https://httpd.apache.org/docs/2.4/howto/access.html

EDIT: you may use older style of blocking ip.. (from apache 2.2) it should still works.. if not use example from above.

Old style of blocking IPs to access your server:

order allow,deny
deny from 255.0.0.0 # IP example1 - replace the IP with offensive IP
deny from 123.45.6.1 # IP example2 - replace the IP with offensive IP and so on...
allow from all

Configuring/troubleshooting Debian servers is always great fun

Sun, 10/29/2017 - 02:30
Joe
Joe's picture

Why are they doing it? Are they injecting ads or something? I can't think of why someone would go to the trouble to mirror your site (or proxy it, I guess, since it goes down when yours does).

--

Check out the forum guidelines!

Sun, 10/29/2017 - 02:35 (Reply to #6)
anthonyinit2012

I have no idea all my content comes up on his/her site with their domain name. i found out another two domain is doing the same this now total # of domain are 3 who are pointing to my site content...

google already dropped my website and ranked other fake site on top :(

Mon, 11/13/2017 - 21:20
anthonyinit2012

blocking ip didn't help website still online... :(

Tue, 11/14/2017 - 05:26
noisemarine

What things have you tried? Did you read the link I posted? Do you understand that if anyone can read your website, they can scrape it for content?

Topic locked