No announcement yet.

HTTP Authentication

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

  • HTTP Authentication

    I am trying to create a website that is only accessable by a password. I want a popup box to display before the page even loads, I think you know what I'm talking about. Does anybody know how to do this?

  • #2
    Wouldn't be easy and I'm pretty sure you'd need your own *server* with software to do it. Anyone care to expand on what I've said. My knowledge is fairly limited in this area.

    Comment


    • #3
      A simple password can be executed by javascript.
      Should work fine on a site hosted by an ISP.

      For a more complex password function, you will require server access. So you would have to host it yourself, or pay for the site.
      The reason a diamond shines so brightly is because it has many facets which reflect light.

      Comment


      • #4
        Heh, javascript passwording. Been there, done that. Too easy to find passwords.

        Comment


        • #5
          Originally posted by Mr.Tweak
          Heh, javascript passwording. Been there, done that. Too easy to find passwords.
          Yes - it would only prove effective against those who are honest and/or uneducated in javascript.

          Honesty on the internet? Now there's a concept!
          The reason a diamond shines so brightly is because it has many facets which reflect light.

          Comment


          • #6
            so running my own server would be a bad thing?

            is it expensive?

            Comment


            • #7
              Just requires a 24/7 connection and the skills to set it up.
              The reason a diamond shines so brightly is because it has many facets which reflect light.

              Comment


              • #8
                is your site big enough to warrant its own server?

                why dont you just add some simple php tags to the start of all the pages?

                for example

                < ? if(isset($password)){
                if($password == 'yourpassword'){
                ? >
                this is where the html goes gor your site...
                < ? die;}? >

                this is where the html goes for unauthorised viewers...

                to acess the site you would just type
                http://server/page?password=yourpassword

                this is dependant on your hosts webserver abilities.
                Some offer ASP support rather than PHP and some offfer none...

                Comment


                • #9
                  ok, might give it a try, do servers such as geocities offer php support

                  Comment


                  • #10
                    i don't think they even offer perl scripting support, so i doubt they will support php
                    TweakTown SETI@home Team

                    Comment


                    • #11
                      i seriously doubt if it is enabled on geocites. You will have to find a free PHP enebaled webhost.... :P

                      Comment


                      • #12
                        php can actually do proper HTTP Basic Authentication by sending the page format header etc and popping up the proper browser specified logon box which you can check in a script. the beauty of it is that the only way yuou can get the password is by getting ftp or shell access to the server as it is not shown in any way on the end users page.
                        SileNceR, Messenger of the Dark and the Night. To post quality, or not to post at all, THAT is the Question - Never again ask what can my post count do for me besides increasing my ego, but instead ask what can I do to help someone else!
                        Overclockers Melbourne (http://www.ocmelbourne.com).

                        Comment


                        • #13
                          I use IIS 5.0 which allows me to password a site as you require (as any webserver worth it's crust should), and host my own site at home using Dynamic DNS for name service. I have an 256KBPS/64KBPS ADSL conneciton so it isn't too bad, over a modem would be fairly crap! If you like I can host a site for you. I'm moving soon so I'll be off the air until at least the end of Feb, but when I come back I should have a have a very tasty 1.5MBPS/256KBPS ADSL link!!

                          Comment


                          • #14
                            brash, with the rate of outages telstra have - assuming u mean telstra adsl, i can't see how good it is to host anything on adsl :D

                            might start doing that myself...hrm -i'm in the middle (512/128)

                            Comment


                            • #15
                              He's on Netspace ADSL I think :?:
                              What came first - Insanity or Society?

                              Comment

                              Working...
                              X