Can I password protect a file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Oracle Porn
    Affiliate
    • Oct 2002
    • 24433

    #1

    Can I password protect a file?

    like I don't want to protect the whole dir just a file
    like oracleporn.com/something.cgi

    can I do that somehow?


  • chemicaleyes
    UNSTOPPABLE
    • Aug 2003
    • 11569

    #2
    I'm sure you can.

    No way as way, No limitation as limitation. AmeriNOC formally PhatServers

    Comment

    • Oracle Porn
      Affiliate
      • Oct 2002
      • 24433

      #3
      Originally posted by chemicaleyes
      I'm sure you can.

      GREATTTTTTTTTT help bro thanks


      Comment

      • corvette
        Confirmed User
        • Oct 2001
        • 7880

        #4
        zip it up with a password
        If you need a good company for check writing services, then check out checkissuing, and for webhosting, check out Phoenix NAP

        Comment

        • Oracle Porn
          Affiliate
          • Oct 2002
          • 24433

          #5
          Originally posted by corvett
          zip it up with a password
          not a zip file..
          a cgi or a php file


          Comment

          • chemicaleyes
            UNSTOPPABLE
            • Aug 2003
            • 11569

            #6
            Originally posted by Oracle Porn


            GREATTTTTTTTTT help bro thanks
            NP bro, someone should know...
            No way as way, No limitation as limitation. AmeriNOC formally PhatServers

            Comment

            • Oracle Porn
              Affiliate
              • Oct 2002
              • 24433

              #7
              bump


              Comment

              • directfiesta
                Too lazy to set a custom title
                • Oct 2002
                • 30166

                #8
                Originally posted by Oracle Porn


                not a zip file..
                a cgi or a php file
                cgi should be in a cgi-bin. Permissions protect what the script is allowed to do...

                If you want to be the only one to use that cgi, create a new folder, put the file in that folder, protect it with .htaccess and make sure you configure Apache to allow execution of a cgi in another folder than cgi-bin.

                I know that Asspimple is stoopid ... As he says, it is a FACT !

                But I can't figure out how he can breathe or type , at the same time ....

                Comment

                • ldinternet
                  Confirmed User
                  • Apr 2001
                  • 8245

                  #9
                  Like this?

                  www.nastydollars.com/stats.htm

                  Comment

                  • Oracle Porn
                    Affiliate
                    • Oct 2002
                    • 24433

                    #10
                    Originally posted by directfiesta


                    cgi should be in a cgi-bin. Permissions protect what the script is allowed to do...

                    If you want to be the only one to use that cgi, create a new folder, put the file in that folder, protect it with .htaccess and make sure you configure Apache to allow execution of a cgi in another folder than cgi-bin.

                    If I move that cgi in another folder ill have to modify fuckload of other pages... its next to impossible


                    Comment

                    • Oracle Porn
                      Affiliate
                      • Oct 2002
                      • 24433

                      #11
                      Originally posted by ldinternet
                      Like this?

                      www.nastydollars.com/stats.htm
                      yes


                      Comment

                      • Matthew
                        Confirmed User
                        • Jul 2002
                        • 194

                        #12
                        .htaccess

                        PHP Code:
                        <Files fileyouwanttoprotect.php>
                        AuthUserFile /www/htpasswds/.htpasswd
                        AuthName Protected
                        AuthType Basic
                        <Limit GET>
                        require valid-user
                        </Limit>
                        </Files> 
                        
                        like that

                        edit.. damn how to insert these less then ang greater then signs..

                        so I just used php tag.. it's not a php *OBVIOUSLY*
                        Last edited by Matthew; 11-29-2003, 09:55 AM.
                        unicorns and rainbows

                        Comment

                        • IntenseCash
                          Confirmed User
                          • Apr 2003
                          • 2421

                          #13
                          I have a php script where I can protect just the one file, or anything behind it. have to enter a user and pass.
                          IntenseCash.com
                          ~ Chuck | ICQ: 444887112
                          Top converting sites:
                          BrokeStraightBoys.com, CollegeDudes.com & CollegeBoyPhysicals.com

                          Comment

                          Working...