Under Global Settings it's possible to protect all cameras with a global username and password.

With manual file editing it's also possible to protect individual cameras with a private username and password:

  1. Turn off the global password protection in Global Settings dialog by clearing both User Name and Password.
  2. The files to be edited can be located through ContaCam's Settings - Config/Log Files menu entry.
  3. Open a command prompt and change directory to the folder opened by ContaCam's Settings - Config/Log Files menu entry.
  4. In the command prompt type the following line to create a password file for your camera:
    "C:\Program Files (x86)\ContaCam\microapache\htpasswd.exe" -c httpd_pw_cameraname.txt username
  5. Open httpd_conf_editable.txt and append the following:
    <Location "/Camera Name">
    AuthType Basic
    AuthUserFile "Drive:\Path\httpd_pw_cameraname.txt"
    AuthName "Camera Name"
    Require valid-user
    </Location>
  6. In the above pasted text set the correct camera name and the full path to httpd_pw_cameraname.txt.
  7. Save httpd_conf_editable.txt and restart ContaCam.

Notes

  • Repeat 2. - 7. for each private camera.
  • httpd_conf_editable.txt survives ContaCam updates.