Javascript Iframe Engelleme
Bu JavaScript kodunu websitenizde <head> etiketinin altına ekleyerek sayfanızın iframe yapılmasını önleyebilir ve XSS saldırılarını kısmen engelleyebilirsiniz.
Kolay gelsin.
Kod :
<script type='text/javascript'>
if((self.parent && !(self.parent===self)) && (self.parent.frames.length!=0)){
window.stop();
document.execCommand('Stop');
self.parent.location=document.location;
}
</script>
Kolay gelsin.