How to prevent my site page to be loaded via 3rd party site frame of iFrame
You cannot check it from the server’s side, but you can use javascript to detect it after the page has loaded. Compare top and self, if they’re not identical, you are in a frame. Additionally, some modern browsers respect the X-FRAME-OPTIONS header, that can have two values: DENY – prevents the page from being rendered … Read more