Posts tagged with ‘prevent frameset’

Javascript: Prevent page from frameset hijack

advertisement

If you would like to prevent your site being frame by other website, you can use the code below to protect your site being frame.

Basically, the javascript check if your site is being open by frameset. It check if the opening window is top or else it will refresh the page to your site URL.

Many unethical site nowdays like to “wrap” other people website using FRAME at their website to show other website as it’s own website. This will mislead the visitor that the content is owned by them.

Continue reading Javascript: Prevent page from frameset hijack »