I need some way to detect if site from some URL is framebreaker or not. I mean that Framebreaker – site which brake frame structure if it loaded in a frame.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If what you’re asking is ‘how do I prevent my web page from being viewed in a frame?’ then here’s the best solution currently known:
Use CSS to set the page’s body to not display:
Then only display the page if it’s not in a frame:
Put the style in the <head> and the script in the <body>.
If you just wanted to detect if the page is being framed, but not do anything about it, all you need is the following javascript: