🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #39417

jak zabezpieczyc przed iframowaniem serwisu ?

#39417
From: Laszlo Uolleh
Date: Thu, 13 Apr 2006 08:38
23 lines
1483 bytes
Prosze o pomoc jak zabezpieczyć podstrony tak by mogły być iframowane 
tylko przez moja strone a przez obce strony już nie ? :)

Dziekuję :)

Mam tu skrypt, ktory zabezpiecza przed podlaczeniem przez iframe mojej 
strony ale całościowo a mi zależy zaby mogl iframowac w granicach jednej 
strony...

<SCRIPT LANGUAGE= "JavaScript" type= "text/javascript">
  <!--
  if (self.parent.frames.length != 0){
   self.parent.location = 'http://www.mojastrona.pl';
  }
  -->
  </SCRIPT>

bardzo dziękuję za pomoc :)

-- 
HELLOU
Officcial Member Of WSZYSTKO CO FAJNE :)
javascript jest fajny
Technical Details
Message-ID: <e1l2ni$sli$1@213-238-100-26.adsl.inetia.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.internetia.pl!not-for-mail
From: Laszlo Uolleh <smetana@BEBECHterramail.pl>
Newsgroups: pl.comp.lang.javascript
Subject: jak zabezpieczyc przed iframowaniem serwisu ?
Date: Thu, 13 Apr 2006 10:38:42 +0200
Organization: Netia Telekom S.A.
Lines: 23
Message-ID: <e1l2ni$sli$1@213-238-100-26.adsl.inetia.pl>
NNTP-Posting-Host: 213-238-100-26.adsl.inetia.pl
Mime-Version: 1.0
X-Trace: nefryt.internetia.pl 1144917554 29362 213.238.100.26 (13 Apr 2006 08:39:14 GMT)
X-Complaints-To: abuse@inetia.pl
NNTP-Posting-Date: Thu, 13 Apr 2006 08:39:14 +0000 (UTC)
X-Accept-Language: pl, en-us, en
X-Tech-Contact: usenet@internetia.pl
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Server-Info: http://www.internetia.pl/news/
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit