Stopping other domains from stealing my site

Posted on 2010-11-13
Last Modified: 2012-05-10
I have a site, let's call it  While doing some keyword checks and search engine rankings, I found another site, let's call it which had my exact site being shown.

They have my entire site acting as their subdomain.  I contacted my hosting company and they said they are "url linking" or something like that.  Is there a way to stop that from happening?

My first thought is to put some code on my pages to only show the content if the server IP matches that of my server....

Thoughts?  Anyones else experience this?

Question by:Slim81
  • 6
  • 6
  • 2
LVL 83

Accepted Solution

Dave Baldwin earned 500 total points
ID: 34127872
If they are using frames to show your site as theirs, this script should break out of the frame and show it as being your site in the address bar.
<script type="text/javascript">
  if (top.location != self.location) {
  top.location.href = "" ;

Open in new window


Author Comment

ID: 34128648
Do you have experience with something like this?  

I am trying to figure out what their intensions are, they are from HongKong, I am in the US.

I will implement your "iframe stopper" and my "server ip stopper" when I am back at the office.
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34128903
We had a related question recently and I found that code and checked it.  Frames have been a common way to hi-jack sites.  Let me know if that's not what is happening.
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.


Author Comment

ID: 34129292
Well, it looks like they were not using iframes, when I looked at the view source from their site, I didn't see any frames.  I tried your code and nothing changed, so they are probably not using frames.

This is what I did (I am on a windows server, hosted by Godaddy, running IIS7, classic asp site) my second line of code is:

if request.ServerVariables("SERVER_NAME") = "" then

So, with the code above, if the server name is not my domain, the page will not load.  The above code worked, my site is no longer visible under their domain name...

I will still use your code Baldwin, in case they start using iframes....

Do you think it is better to redirect them to my site instead of having it be blank?

I am open to all ideas...

LVL 83

Expert Comment

by:Dave Baldwin
ID: 34129352
If you redirect it to your site, they may not notice as quickly and maybe you'll get some more viewers.  If you want them.
LVL 77

Expert Comment

ID: 34129429
The dynamic code that runs on your system does not transfer if they copied your site since all they can copy is the HTML content and your server check will not be part of it.  You can contact the provider and advise them that their customer is violating your copyrights.

You could try to look at the Referrer section of your server to see if the request is seen as being a link to not respond or do something that wioll aolert the user that they are/should go to your site directly.

Without seeing the notyour site, it is impossible to know whether it is really a link or something else.

Author Comment

ID: 34129464
It wasn't a copy, it was my site.  If I made a change on one of my pages (ie added some text), it would show up immediately on their site.  It was an exact "live" copy.

Added the dynamic code blocked the site from showing on their site.

Let me know if that makes sense or not, I can remove the code and show you the two different sites if needed.....

LVL 83

Expert Comment

by:Dave Baldwin
ID: 34129563
It sounds like they were having the domain forwarded to your site.  If you post the URL we can look it up and see what's going on.

Author Comment

ID: 34129628
their site is

Please note, nothing will show as I have the dynamic code in place.

How do you look that up?

LVL 83

Expert Comment

by:Dave Baldwin
ID: 34129703
Here's the domain registration info on ""  "" is a subdomain of that.  And yes, they are pointing straight to your Godaddy site.  They are probably doing domain forwarding from their registrar which is '' in Egypt... which appears to be part of '' which is registered thru Godaddy.  Their servers appear to be in Seattle.

I use IDServe.exe from and WhoisTD.exe from Nirsoft.
Domain ID:D32997710-LRMS
Created On:21-May-2010 04:37:05 UTC
Last Updated On:20-Jul-2010 20:34:23 UTC
Expiration Date:21-May-2011 04:37:05 UTC
Sponsoring Inc. (R171-LRMS)
Registrant ID:CR48464543
Registrant Name:sum link
Registrant Organization:
Registrant Street1:hongkong
Registrant Street2:
Registrant Street3:
Registrant City:hongkong
Registrant State/Province:hongkong
Registrant Postal Code:86678
Registrant Country:HK
Registrant Phone:+852.68754257
Registrant Phone Ext.:
Registrant FAX:
Registrant FAX Ext.:
Admin ID:CR48464555
Admin Name:sum link
Admin Organization:
Admin Street1:hongkong
Admin Street2:
Admin Street3:
Admin City:hongkong
Admin State/Province:hongkong
Admin Postal Code:86678
Admin Country:HK
Admin Phone:+852.68754257
Admin Phone Ext.:
Admin FAX:
Admin FAX Ext.:
Billing ID:CR48464565
Billing Name:sum link
Billing Organization:
Billing Street1:hongkong
Billing Street2:
Billing Street3:
Billing City:hongkong
Billing State/Province:hongkong
Billing Postal Code:86678
Billing Country:HK
Billing Phone:+852.68754257
Billing Phone Ext.:
Billing FAX:
Billing FAX Ext.:
Tech ID:CR48464551
Tech Name:sum link
Tech Organization:
Tech Street1:hongkong
Tech Street2:
Tech Street3:
Tech City:hongkong
Tech State/Province:hongkong
Tech Postal Code:86678
Tech Country:HK
Tech Phone:+852.68754257
Tech Phone Ext.:
Tech FAX:
Tech FAX Ext.:

Open in new window


Author Comment

ID: 34129752
I had pulled up their whois info earlier and tried giving them a call, ofcourse the phone number is not valid, lol.

Any ideas as to why they would forward to my domain?

My site is an order management site, specifically designed for a small shopping cart program (probably only 200,000 users or so).  It has only been live for a few weeks.

Thanks for all the insight!

LVL 77

Expert Comment

ID: 34129922
It is impossible to determine their motivation.  Could be they would collect the information submitted.
LVL 83

Expert Comment

by:Dave Baldwin
ID: 34130080
I guess they liked your work....

Author Closing Comment

ID: 34130815
DaveBaldwin was extremely helpful and gave good insight into my issue.

His solution was related to iframes, which wasn't the problem I was faced with, though it is something I was able to implement and it should hopefully provide some "security" in the future.

Thanks to dave a solution was reached.

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ransomware continues to be a growing problem for both personal and business users alike and Antivirus companies are still struggling to find a reliable way to protect you from this dangerous threat.
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question