SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    another site mirroring my site

    How do I stop another site from mirroring my site? It looks exactly the same, has the same file structure and any content that I add is immediately added on their site. It appears to be a mirror, not that they stole any files. Can I stop that some how on my end?
    Free Science Homework Help
    http://www.physicsforums.com

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    If they're stealing your PHP files, add a test of the $_SERVER['HTTP_HOST'] then redirect to your website. Since you say that they're not stolen, incorporate a new JavaScript code (use a compression routine so it's not very readable; if you don't know what the effect of a compression routine is, go to http://jquery.com and download their three versions of jQuery and compare them) to do the same thing and make it a part of another Javascript file you are using which is required by your website.

    THEN e-mail the host of the mirror site and register a complaint. If you're serious about stopping it, have an attorney write the letter to the host to threaten legal action.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Wizard dethfire's Avatar
    Join Date
    Aug 2000
    Posts
    2,477
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    turns out, the domain is simply pointing to my IP! How in the world can I stop that!? fyi i appears to be owned by a russian.
    Free Science Homework Help
    http://www.physicsforums.com

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,672
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    Ah, that's simple, then as you can use .htaccess and mod_rewrite to "correct" the domain name viewed.
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !mydomain\.com [NC]
    RewriteRule .? http://mydomain.com%{REQUEST_URI} [R=301,L]
    That will get rid of the bogus domain in the browsers by permanently redirecting to your domain.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •