Stop Iframe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • amitdas333
    replied
    Using hotlinking protection it works but creates many other problems.

    Leave a comment:


  • StunningNick
    replied
    Yep!!!

    Originally posted by something else View Post
    Browser 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:


  • something else
    replied
    Originally posted by StunningNick View Post
    PHP WAY

    header("X-FRAME-OPTIONS: DENY");
    Browser 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

    Originally posted by amitdas333 View Post
    Using javascript to stop iframe is not working in operamini.
    Limited javascript on operamini will prevent javascript codes from working against iframes
    Last edited by something else; 27.04.12, 03:45.

    Leave a comment:


  • subzero
    replied
    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:


  • amitdas333
    replied
    Using javascript to stop iframe is not working in operamini.

    Leave a comment:


  • subzero
    replied
    Yeah you can stop frames lol ...

    Make it load in 2 places means wake up the browser JS aka javascript

    Leave a comment:


  • amitdas333
    replied
    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:


  • Loony
    replied
    hmm well thanks lol it never showed for me but thanks for the info mate

    Leave a comment:


  • StunningNick
    replied
    Originally posted by amitdas333 View Post
    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??
    PHP WAY


    header("X-FRAME-OPTIONS: DENY");


    Originally posted by Loony View Post
    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



    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:


  • Loony
    replied
    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:


  • Mysterio
    replied
    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:


  • Loony
    replied
    do it from inside cpanel in hotlink protection u can add all the file types u dont want to be leached from your server and even set up a nifty little page that the iframe will see when they try. :D
    Last edited by Loony; 25.04.12, 20:10.

    Leave a comment:


  • amitdas333
    started a topic Stop Iframe

    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??
Working...
X