I have a iframe in my webpage (facebook like etc.). can i prevent a break out from this iframe?
I did not the iframe can data be read at my session / forms etc
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 you’re worried about security: No need. An iframe containing an external page can not read sessions, or submit forms, in the parent page. The Same Origin Policy prevents that.
Other than that: Preventing frame busting is a complicated task. See this question for some of the complexities, and a working code example for a “frame buster buster”.