Web Analytics Made Easy -
StatCounter What's the best way to hide some pages/content with a password (register/login) - CodingForum

Announcement

Collapse
No announcement yet.

What's the best way to hide some pages/content with a password (register/login)

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

  • What's the best way to hide some pages/content with a password (register/login)

    Hi all,

    I'm working on a site which needs a register/login option for its customers. It's not a real complex login need. Some people will just need to login to view certain pages/content.

    What would be the best (and simplest) way to do this?

    Thanks for any and all help!

    Q

  • #2
    Just a suggestion

    I could not tell you how to construct something like that, however i had a similar problem. The only difference is i needed to take subscriptions. The cheapest option i could find at the time was from Omni Site Secure. Its simple and effective and works out of the box. However, the more you want to customize it (i have tried to bend it alot) the more complicated it can be. But if you want it to just manage your members, display their username and let them in secure areas, it does the job. as far as i remember, they will give you a free trial and set it up for you.

    Comment


    • #3
      If you just need a simple password protection of pages then htaccess might be the way to go (if that’s an option for you).
      Stop solving problems you don’t yet have!

      Comment


      • #4
        Originally posted by VIPStephan View Post
        If you just need a simple password protection of pages then htaccess might be the way to go (if that’s an option for you).

        htaccess is no good if he wants register/login..... at least if he doesn't want to manually manage it
        Last edited by embeebutterly; Aug 29, 2011, 11:26 PM. Reason: spelling

        Comment


        • #5
          First create groups number for your members in database. Example: Visitor is "0" & member is "1". Then use "if" & "else" code to restrict different group in php.
          My Gather

          Comment


          • #6
            Thanks guys for the ideas. I was able to get it set up pretty easily with my web host!

            Comment


            • #7
              Access Levels

              It's a common asked question ! which language you're using?

              And which OS you're on?
              Don't forget to mark solution providing post as "Answered".
              It helps others to find correct solutions!

              Comment


              • #8
                I think it's best to create groups as the danild said.
                Table Saw Reviews

                Comment


                • #9
                  My webhost is GoDaddy. I was going to do .htpasswd with .htaccess, since that should've worked well with what I needed (only needed a couple passwords/logins). But, I hear GoDaddy doesn't support that (or at least it doesn't work very well). They have a way to set up a password in the File Manager portion of the web hosting dashboard, so I just did that. It was quite easy to do as well.

                  Comment

                  Working...
                  X
                  😀
                  🥰
                  🤢
                  😎
                  😡
                  👍
                  👎