Applying per directory X-Frame-Options headers in Apache
Applying the following directive in Apache will prevent pages from being embedded in other sites as frames/iframes:
Header always append X-Frame-Options SAMEORIGIN
But what if you want to allow some pages to be embedded as frames/iframes? I was able to do this by unsetting the directive in a .htaccess file.
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed