php - prevent page opening on an iframe? -


how can prevent page opening on iframe using php? gmail inside iframe?

for php, can use.

header("x-frame-options: deny"); 

this supported in modern browsers, ie8+, firefox 3.6.9, safari 4 , chrome. older browser, require javascript.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

c# - HwndSource win32 integration with Ribbons and KeyTips -