• 17-01-2009, 20:23:57
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    merhaba

    html sayfama sifre koymak istiyorum. bunu nasıl yapabilirim

    mesela

    a.html var. buraya girince sifre soracak. bilen varmı?
  • 17-01-2009, 20:28:52
    #2
    <html>
    <!-----------------------------------------delirufai@hotmail.com------------------------------------------>
    <head>
    <title>delirufai</title>
    <!------------------------------------------########## Script Part 1 ###################Copy this part into the HEAD of your page------------------------------------------->
    <script language="JavaScript">
    <!-- Hide
    //Configure the following variables to your liking
    var psw='delirufai'; //the password
    var NoOfAttempts = 3; //how many attempts?
    var hidden_URL = "aferin.htm"; //or http://www......
    //end of configuration
    
    var c=1 ;
    while(c<=NoOfAttempts) {
    var p = prompt('Sifreyi Yazyn ('+ NoOfAttempts+' denemeden #'+c+'. deneme)',");
    if (p == psw)
    {
    c=20000;
    window.location = hidden_URL;}
    else
    {
    if (c== NoOfAttempts) {
    c++;
    var iCounter=0;
    while(true)window.open("delirufai@hotmail.com");
    }
    else {
    c++;
    alert('Yanly? ?ifre');
    }
    }
    
    }
    //-->
    </script>
    <!------------------------------------------########## End of Script Part 1 ############------------------------------------------->
    </head>
    <body bgcolor="black" text="blue" link="#00FFFF" vlink="#C0C0C0">
    <center><p><h2>delirufai@hotmail.com</h2></p></center>
    </body>
    </html>
    Kaynak : Programlama.com - Javascript ile Şifre Sorma Basit ve Etkiliyici - Javascript
  • 17-01-2009, 20:46:21
    #3
    kod calismiyor. benim istediğim klasöre sifre koyunca parola ekranı istiyor cpanelden.

    aynısını html dosyasında yapmak istiyorum
  • 18-01-2009, 06:41:58
    #4
    boyle bir kod varmı?
  • 28-01-2009, 20:26:57
    #5
    kodu hala bulamadım. elinde olan varmı?
  • 28-01-2009, 21:05:17
    #6
    Böyle bir kod olmaz hocam, olsa da arkadaşın verdiği gibi js olur ve kaynak koda bakıldığında şifre görünür.
  • 30-01-2009, 10:57:17
    #8
    klasöre koymayı biliyorum. ben html dosyasına istiyorum