View Single Post
Old 2005-10-25, 06:39 AM   #11
Jel
I'm the only guy in the world who has to wake up to have a nightmare
 
Jel's Avatar
 
Join Date: Feb 2004
Location: London, United Kingdom
Posts: 1,895
Doesn't this piece of code in your head tags prevent your page being loaded in a frame?

<script language="Javascript">
var domaincheck=document.location.href
var accepted_ok=false
if (domaincheck.match ("http:\/\/www.yourdomain.com")){
accepted_ok=true
}
if (domaincheck.match ("http:\/\/yourdomain.com")){
accepted_ok=true
}
if (!accepted_ok){
window.location='http://www.yourdomain.com/'
}
</script>

(Sorry I couldn't get it to paste correctly in a code, php, or even quote tag)

That is from TDavid Kalle
Jel is offline   Reply With Quote