Prevent Your Site From Being Framed
If you’ve ever discovered that someone has linked to your web site within a frame, which means your site is stuck in their frame with their information displaying within another frame, you know how frustrating this can be. You want your visitors to visit your web site within their standard browser window - not within another web site’s frame. The following JavaScript code will enable you to prevent your web site from being framed.
————–
Wenn Sie jemals entdeckt, die jemand hat in Verbindung mit Ihrer Website innerhalb eines Frames, was bedeutet, dass Ihre Website steckt in ihrem Rahmen mit ihrer Darstellung von Informationen in einem anderen Rahmen, wissen Sie, wie frustrierend das sein kann. Sie möchten, dass Ihre Besucher zu Ihrer Website in ihrem Standard-Browser-Fenster - nicht innerhalb von einer anderen Web-Site-Frame. Der folgende JavaScript-Code können Sie verhindern, dass Ihre Website nicht gerahmt.
Add the following bold code to your <body> tag:
<body onLoad=”if (self != top) top.location = self.location”>
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.


Comments
No comments yet.
Leave a comment