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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -