• 01-10-2018, 21:37:59
    #1
    Merhaba arkadaşlar,

    İçeriğimi iframe ile çeken siteyi nasıl engelleye bilirim?
  • 01-10-2018, 21:42:09
    #2
    <script type="text/javascript">
    if (self != top) {
    top.location.replace(location.href);
    }
    </script>
  • 01-10-2018, 21:45:34
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    .htaccess iframe block
    RewriteEngine On
    RewriteCond %{QUERY_STRING} !^id=[^&]+ [NC]
    # if referrer is bad.com
    RewriteCond %{HTTP_REFERER} (www.)?bad.com [NC]
    # then redirect to a different page
    RewriteRule !^404.shtm [L,NC,R=302]
    Kaynak : https://stackoverflow.com/a/19923282
  • 01-10-2018, 21:46:35
    #4
    WebWon adlı üyeden alıntı: mesajı görüntüle
    .htaccess iframe block
    RewriteEngine On
    RewriteCond %{QUERY_STRING} !^id=[^&]+ [NC]
    # if referrer is bad.com
    RewriteCond %{HTTP_REFERER} (www.)?bad.com [NC]
    # then redirect to a different page
    RewriteRule !^404.shtm [L,NC,R=302]
    Kaynak : https://stackoverflow.com/a/19923282
    Bu kod fazlasıyla işe yarar.
  • 01-10-2018, 21:55:17
    #5
    V3SC adlı üyeden alıntı: mesajı görüntüle
    <script type="text/javascript">
    if (self != top) {
    top.location.replace(location.href);
    }
    </script>

    çok teşekkürler