2

I have a website called http://example.com. there is another website called http://example1.com it has the same content as for my website.

If I upload file on my website like http://example.com/test.php , I can access the same URL on his website

I want to know how this happens and how to prevent it?

  • 3
    have you done DNS lookup on the both domains ? – elsadek Oct 28 '18 at 11:33
  • 3
    Could be a reverse proxy. You're basically asking "how to prevent someone from accessing my website" since in effect that is all they are doing. There is no technical way to prevent this on a public website, besides trying to block the addresses of such servers. – multithr3at3d Oct 28 '18 at 11:50
  • 1
    You've probably configured both websites to use the same content directory. This type of question is best answered on ServerFault. – user2320464 Oct 28 '18 at 16:14
  • 2
    @user2320464 HTTPS by itself offers zero protection from this. – Joseph Sible-Reinstate Monica Oct 28 '18 at 19:34
  • 1
    @user2320464 I don't think you understand the potential problem, if this is a copycat site. TLS would have zero effect. All the copycat site needs to do is to crawl the valid site regularly, and update based on changes. The problem here is not a domain issue, but a content issue. – schroeder Oct 28 '18 at 20:12