.htaccess iframe block
RewriteEngine On
RewriteCond %{QUERY_STRING} !^id=[^&]+ [NC]
# if referrer is bad.com
RewriteCond %{HTTP_REFERER} (www.)?bad.com [NC]
# then redirect to a different page
RewriteRule !^404.shtm [L,NC,R=302]
Kaynak : https://stackoverflow.com/a/19923282