html - Detect an iframe, server side (no javascript)? -


how can detect, server side, page being loaded in iframe?

take @ html code - www.google.com refuses load in iframe. other pages, www.example.com load in iframe:

 <html>     <head>     </head>     <body>     <iframe src="https://www.google.com/" width="600" height="300"></iframe>     </body>  </html> 

they don't use javascript detect it, must server side guess? how made?

google sends http header x-frame-options: sameorigin prevent being shown in iframe. see this article more information header.


Comments