php - Can you create an 'if' statement for iFrame blocking instead of: X-Frame-Options? -


when use following code, @ top of php file, block visiting iframes, possible display php page in stead, sort of like, change code 'if' statement? if so, how that?

code:

<?php  /* prevents page being loaded in iframe, on domain, besides original domain [begin] */  header('x-frame-options: sameorigin');   /* prevents page being loaded in iframe, on domain, besides original domain [end] */  ?> 


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -