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? -

c# - Where does the .ToList() go in LINQ query result -

android - CollapsingToolbarLayout: position the ExpandedText programmatically -