sandip
answered Apr 7 '22 00:00
in PHP you can send a header with X-Frame-Options,
below code send X-Frame-Options as deny. so no one can embed the website at any other website or same website
header("X-Frame-Options: DENY");
below code send X-Frame-Options as SAMEORIGIN.so no one can embed website at any other website but in the same website , it can be done
header("X-Frame-Options: SAMEORIGIN");