Stop Iframe

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

    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??

    #2
    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.
    Creator of
    Epix.Mobi

    Keep an Eye on us Big things coming soon!!!!
    Need something for your site hit me up here

    http://coding-talk.com/forum/main-fo...r-your-wapsite

    Comment


      #3
      Browsing a site through an iframe cannot be stopped (otherwise except JS).
      You can still hotlink protect specific file types from cPanel.
      mysterio.al - programming is a functional art

      Comment


        #4
        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
        Creator of
        Epix.Mobi

        Keep an Eye on us Big things coming soon!!!!
        Need something for your site hit me up here

        http://coding-talk.com/forum/main-fo...r-your-wapsite

        Comment


          #5
          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

          Comment


            #6
            hmm well thanks lol it never showed for me but thanks for the info mate
            Creator of
            Epix.Mobi

            Keep an Eye on us Big things coming soon!!!!
            Need something for your site hit me up here

            http://coding-talk.com/forum/main-fo...r-your-wapsite

            Comment


              #7
              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.

              Comment


                #8
                Yeah you can stop frames lol ...

                Make it load in 2 places means wake up the browser JS aka javascript
                Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                Visit: WapMasterz Coming Back Soon!
                _______
                SCRIPTS FOR SALE BY SUBZERO
                Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                _______
                Info & Tips
                php.net
                w3schools.com

                Comment


                  #9
                  Using javascript to stop iframe is not working in operamini.

                  Comment


                    #10
                    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;

                    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
                    Visit: WapMasterz Coming Back Soon!
                    _______
                    SCRIPTS FOR SALE BY SUBZERO
                    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
                    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
                    _______
                    Info & Tips
                    php.net
                    w3schools.com

                    Comment


                      #11
                      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.

                      Comment


                        #12
                        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).

                        Comment


                          #13
                          Using hotlinking protection it works but creates many other problems.

                          Comment

                          Working...
                          X