.htaccess password protection for forms

  • Profile Image
    Asked on April 17, 2013 at 11:49 AM


    I am looking at protecting my forms with a password. I've read some topics about using the password field and adding conditions to the value entered (skipping to next page or not) however I would rather block access to the entire HTML file in which the form has been iFramed.

    Is there any objection in using .htaccess protection instead of the solution as proposed in other topics (as described above)?


    Kind regards,


  • Profile Image
    Answered on April 17, 2013 at 12:30 PM

    You can password protect your webpage either at client side or server side without affecting the form's code

    In your case, it's fine if you assign protection at your Apache server side . The iFrame code of the form would be embedded into a web page which would be stored into a folder located at your web server . So .httaccess protection will make your webpage folder to be available only to people who you want it to be available to