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
Post a Comment