My opponent steals my page using iframe :D

Discussion in 'Scripts' started by darkhorn, Dec 27, 2008.

  1. #1
    My opponent steals my page using iframe. Is there to pop-up my web page in their web site? If not I'll replace an add-image. :D

    My page (I use it in this way just to translate it into Bulgarian language):
    http://krumovgrad.eu/weather/
    opponent page (they are using mine because they do not know how to translate it):
    http://krumovgrad-bg.com/
    Code (markup):
    My question is "Is there to pop-up my web page in their web site?"
     
    darkhorn, Dec 27, 2008 IP
  2. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #2
    this might help

    Put it in the head tags of the page you want to protect.

    <script type="text/javascript">
    	<!--
    		if (top.location!= self.location) {
    			top.location = self.location.href
    		}
    	//-->
    </script>
    
    Code (markup):
    It should tell your frame to check if it is shown as the top frame, and if not to reload the page with it as the main frame.
     
    vagrant, Dec 27, 2008 IP
  3. darkhorn

    darkhorn Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Vagrant, you are great! It works perfectly :cool:

    Edit: oo my god :D

    Edit2: About one hour later: the opponenet's site is closed :p
     
    darkhorn, Dec 27, 2008 IP
  4. vagrant

    vagrant Peon

    Messages:
    2,284
    Likes Received:
    181
    Best Answers:
    0
    Trophy Points:
    0
    #4
    glad it works for you :)

    such a shame about the opponent's :D .... hope you send him a box of aspirin while he works out how to do things himself ;)

    If he works out a war around that, then you will need to do things with the browser referral tag in your .htaccess file with a redirect.
     
    vagrant, Dec 27, 2008 IP