• 13-11-2019, 17:30:45
    #1
    dostlar siteyi mobil uygulamaya webview ile ekliyorlar sanırım ve üstten alttan siyah şeritler koyup site adresini gizliyorlar ya hiç çekemesinler ya da siyah şeritler koyamasınlar, site tam hali ile görünsün.

    halledebilecek kişiler pm atsın lütfen.
  • 13-11-2019, 17:34:17
    #2
    if(window.self != window.top) {
      try { 
        if(window.parent.location.hostname.indexOf("siten.com") == -1) { 
    
              window.location.href = "http://siten.com"; 
         } else {
           //You are in an iframe but Same-Origin 
        }
      } catch (ex) { 
         //Congrats, you are in an iframe loaded in a stranger's site! 
         window.location.href = "http://siten"; 
      }
    }
    bu kodu sayfana koy; siten adreslerine kendi adresini yaz. eger sayfa iframede acılırsa kontrol edecek ve sayfayı komple sitene yonlendirecke.

    sunucu tarafında sayfana su header ı koy (php için)
    header( 'X-Frame-Options: DENY' );
  • 13-11-2019, 17:40:07
    #3
    <body onLoad="if (self != top) top.location=self.location">