Menu

how to Password protect ...forms/admin/index

Help
Todd Houck
2003-07-23
2003-07-23
  • Todd Houck

    Todd Houck - 2003-07-23

    Hello,

    Is there a way to password protect certain files in PHPformgen? 

    Todd

     
    • Anonymous

      Anonymous - 2003-07-23

      If a visitor was to look at the form and see:

      action='http://www.somewebsite.com/cgi-bin/somedirectory/somedirectory2/forms/process.php' method='post'>

      They could go back to the forms directory and click on admin and see all of the data. Go back one more directory and they could make a form!

       
    • Musawir Ali

      Musawir Ali - 2003-07-23

      that is because you're using the form where it was generated! Each form has to be *copied out* to a separate place where it will be used after it is generated. You could set the correct file permissions in the new spot so that everyone is not able to read or write to your forms or form data. To enforce this *copying out* process, I have had the generator overwrite the old forms .. but people still seem to be using the forms right where they were generated.
      As for the password protection, individual files can't be password protected but you can htaccess based authentication on an entire directory.

       
    • Anonymous

      Anonymous - 2003-07-23

      If this is the address where the form processor is located to process the form,

      action='http://www.somewebsite.com/cgi-bin/somedirectory/somedirectory2/forms/process.php' method='post'>

      This location is a COPY of the original directory where the form was generated, including all of these directories and their contents:

      phpform
      .forms
      ..admin
      ..files

      what would I set my CHMOD setting to for each directory and its contents?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.