Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Password protecting a site  (Read 3655 times)

0 Members and 1 Guest are viewing this topic.

Slay3r

    Topic Starter


    Rookie

    Password protecting a site
    « on: March 03, 2009, 06:06:26 AM »
    Hi

    Ive created my own website with plublisher 2007 but now i need to password protect certain content on the website i need to create different passwords
    « Last Edit: March 03, 2009, 07:11:38 AM by Slay3r »

    kpac

    • Web moderator
    • Moderator


    • Hacker

    • kpac®
    • Thanked: 184
      • Yes
      • Yes
      • Yes
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 7
    Re: Password protecting a site
    « Reply #1 on: March 03, 2009, 09:49:29 AM »
    You could use a user login authentication system using PHP or ASP etc., or you could use htaccess.

    Slay3r

      Topic Starter


      Rookie

      Re: Password protecting a site
      « Reply #2 on: March 03, 2009, 11:09:13 PM »
      ok but i created the site with ms publisher 2007 will those still work?

      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: Password protecting a site
      « Reply #3 on: March 04, 2009, 02:16:59 AM »
      Is your site built with ASP or plain HTML?

      Slay3r

        Topic Starter


        Rookie

        Re: Password protecting a site
        « Reply #4 on: March 04, 2009, 03:51:57 AM »
        Plain html i just desighned it with publisher

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7
        Re: Password protecting a site
        « Reply #5 on: March 04, 2009, 04:35:55 AM »

        Bannana97



          Intermediate
        • Owner of HerbertsWorld Corporation
          Re: Password protecting a site
          « Reply #6 on: March 08, 2009, 06:51:06 PM »
          Maybe try this? I think it doesnt work...

          Code: [Select]
          <script type="text/javascript">
          function askLogin(password) {
          var p = prompt('Please enter your password','Password')
          if p('',password') {
            alert('Thanks!')
          else
            alert('You do not have permission to access this page!')
            var newLoc = "http://www.example.com/path-to-failed-login.type"
            window.location = newLoc
            }
          }

          <body onLoad="askLogin('PASSWORD HERE')">
          « Last Edit: March 09, 2009, 10:37:56 AM by kpac »
          Thanks
          Bannana97

          Bannana97



            Intermediate
          • Owner of HerbertsWorld Corporation
            Re: Password protecting a site
            « Reply #7 on: March 08, 2009, 06:52:10 PM »
            For multiple passwords, use:

            Code: [Select]
            <script type="text/javascript">
            function askLogin(password) {
            var p = prompt('Please enter your password','Password')
            if p('',password') {
              alert('Thanks!')
            else
              alert('You do not have permission to access this page!')
              var newLoc = "http://www.example.com/path-to-failed-login.type"
              window.location = newLoc
              }
            }

            <body onLoad="askLogin('PASSWORD HERE','Password Here','Password Here','So on')">
            « Last Edit: March 09, 2009, 10:37:49 AM by kpac »
            Thanks
            Bannana97