How do I block my website from an iframe? For Instance YouTube cannot appear in a iframe it will say in place the owner of this website have blocked iframes. i am aware of the meta tag way like this
<meta http-equiv="X-Frame-Options" content="deny">
howerver that does not work for me, is there any other way, i would prefer to use javascript and html no apachi php ajex or others please. this is the youtube iframe that i wish to block just with my site. also without .htaccess
<!DOCTYPE html>
<html>
<head>
<title>YouTube</title>
</head>
<body>
<iframe width="50%" height="50%" src="http://www.youtube.com" >
</iframe>
</body>