Stop Iframe
Collapse
X
-
Yep!!!
Originally posted by something else View PostBrowser Lowest version
Internet Explorer 8.0
Firefox (Gecko) 3.6.9 (1.9.2.9)
Opera 10.50
Safari 4.0
Chrome 4.1.249.1042
using a proxy may also stop this from working
mobile browsers may not support this also
Yep!!! this/htaccess or simply X-FRAME-OPTIONS HTTP header will only work with browser(s){version(s)} supporting them & 1 can easily bypass using custom header or either some proxy site(s).
Leave a comment:
-
Browser Lowest versionOriginally posted by StunningNick View PostPHP WAY
header("X-FRAME-OPTIONS: DENY");
Internet Explorer 8.0
Firefox (Gecko) 3.6.9 (1.9.2.9)
Opera 10.50
Safari 4.0
Chrome 4.1.249.1042
using a proxy may also stop this from working
mobile browsers may not support this also
Limited javascript on operamini will prevent javascript codes from working against iframesOriginally posted by amitdas333 View PostUsing javascript to stop iframe is not working in operamini.Last edited by something else; 27.04.12, 03:45.
Leave a comment:
-
Look at youtube and fine there javascript lol i know they have best coded one out.
PHP Code:function parentIsSameOrigin()
{
var result = true;
if (window.parent)
{
result = Boolean
(
// more precise modifications needed here
window.this.location.href.indexOf(window.parent.location.href) == 0
);
}
return result;
}
Leave a comment:
-
Yeah you can stop frames lol ...
Make it load in 2 places means wake up the browser JS aka javascript
Leave a comment:
-
Thanks for all your info. Its better to remove the main cause for which peaple using iframe of my site Adfresh. Now i don't mind if anyone use iframe of my site.
Leave a comment:
-
hmm well thanks lol it never showed for me but thanks for the info mate
Leave a comment:
-
PHP WAYOriginally posted by amitdas333 View PostHi! Do anyone know how to stop my site to be displayed in an iframe of another site?
I found the javascript solution. Is there any better solution??
header("X-FRAME-OPTIONS: DENY");
Originally posted by Loony View Posttry and open a iframe to my site then epix.mobi im going out for a sec let me see if u can do it it isnt using JS btw
http://111.118.212.210/~waynickc/xampp/mp3.php
hmm... i guess it really works :P
try doing it using htaccess works better anyway :P
Leave a comment:
-
try and open a iframe to my site then epix.mobi im going out for a sec let me see if u can do it it isnt using JS btw
Leave a comment:
-
Browsing a site through an iframe cannot be stopped (otherwise except JS).
You can still hotlink protect specific file types from cPanel.
Leave a comment:
-
Stop Iframe
Hi! Do anyone know how to stop my site to be displayed in an iframe of another site?
I found the javascript solution. Is there any better solution??Tags: None
Leave a comment: