iFrame

Fix empty DFP iframes on responsive websites due to illegal repositioning

Today I'd like to share a recent problem we had in a Drupal project where we were using dfp.module.

We were wondering that from time to time DFP ads were disappearing on some positions.

Moving ads parents containers is the reason

Clickjacking via iFrames vorbeugen durch X-Frame-Options SAMEORIGIN

If you want to prevent browsers from rendering content in an iFrame, for example to disallow embedding your page as iFrame on foreign pages, you can use the X-Frame-Options response header

For example in apache using mod_headers:


Header append X-Frame-Options SAMEORIGIN