Motion - Support Question 2009x 04x 13x 194312

Authentication for the mini-http server

Question

Hi, 1001 thanks for a good product, it works wonderful on my nslu2/debian5/Logitech quickcam E3500.

You have the option "control_authentication" for the "HTTP Based Control" (see "/etc/motion/motion.conf") . I wish you could make the same one for the "Live Webcam Server".

My plan is to port-forward the mini-http so I can access the webcam from everywhere. To protect everyone else access the site, I need an authentication just like the "HTTP Based Control". Please help.

nb: had tried .htaccess at the "target_dir", but not help.

Sincerely Tuan
############################################################
# Live Webcam Server
############################################################

# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 82

# Quality of the jpeg images produced (default: 50)
webcam_quality 50

# Output frames at 1 fps when no motion is detected and increase to the
# rate given by webcam_maxrate when motion is detected (default: off)
webcam_motion off

# Maximum framerate for webcam streams (default: 1)
webcam_maxrate 1

# Restrict webcam connections to localhost only (default: on)
webcam_localhost off


Environment

Motion version: 3.2.9
ffmpeg version: FFmpeg version r11872+debian_0.svn20080206-17, Copyright (c) 2000-2008
Libraries: n/a
Server OS: Linux debian1 2.6.26-1-ixp4xx #1 Sat Mar 14 08:31:13 UTC 2009 armv5tel GNU/Linux
-- TuanNg - 13 Apr 2009

Answer

Authentication on stream won't be implemented as motion stream is not a good tool to do external stream but just as a debug / private source.

To protect the stream you can get stream of motion from an extenal streaming tool or apache using mod_proxy and relaying rather than offering directly motion stream.

-- AngelCarpintero - 09 Jul 2009
Topic revision: r2 - 09 Jul 2009, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.