Other websites keep framing my site. How can I prevent?

This issue can be pretty annoying to some. The following javascript is a great tool in preventing your site from being framed by other sites.

Include the following code to your <body> tag:

<body onLoad="if (self != top) top.location = self.location">
  • 852 Users Found This Useful

Was this answer helpful?

Related Articles

Redirect website to https:// and www. via .htaccess

To forward a website to use both www. and https:// use the following in an .htaccess file:...

Creating and Submitting a Google Sitemap

Creating a Google sitemap can be easy and beneficial. By using one, you are pushing a full list...

What are all these .htaccess files?

.htaccess files are used to perform certain rules such as displaying a 404.shtml file in replace...

What are these .htaccess files that keep popping up?

.htaccess files are default files the server uses to perform certain tasks. Features such as...