mjprox, deny access to cgi-bin? 
  Question 
I'm using motion and mjprox to serve the streams over port 80. It works well. I've password protected the directory, which is fine, except, they could still go to /cgi-bin/nph-mjprox etc and see the stream.
How can I limit access to the script only via the specified folder?
Paste in your error messages, config settings, terminal window output etc in this text field.
  Environment 
	
		
			|  Motion version:  | 
			 3.2.11.1  | 
		
		
			|  ffmpeg version:  | 
			    | 
		
		
			|  Libraries:  | 
			 ffmpeg, mysql, postgresql  | 
		
		
			|  Server OS:  | 
			 Ubuntu 9.04  | 
		
	
-- 
WeirdBeard - 12 Oct 2009
  Answer 
You have to protect your cgi-bin directory , i.ex using .htaccess .
/usr/lib/cgi-bin/.htaccess
AuthType Basic
AuthName "Password Required"
AuthUserFile /usr/lib/cgi-bin/.htpass 
Require user
Note : you have to allow .htaccess in your cgi-bin directory , take a look to apache config and change 
AllowOverride to ALL :
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride All
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
</Directory>
-- 
AngelCarpintero - 15 Nov 2009