this is found in you apache config
you can limit the use of your recording to just one computer from his ip .
for exemple here :
in /etc/apache2/sites-available/default :
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
as this you will allow computer to have recording but if you want to deny all computer so you will do this:
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Deny from all
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
other solution is block access from A network/netmask pair:
exemple:
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from 10.1.0.0/255.255.0.0
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
other solution is from A full IP address:
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Deny from 10.1.2.10
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
other solution is from A (partial) domain-name:
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Deny from domainname.org
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
and they are more other solution if you like just try to understand more apache mods access or try htacess config
finally as you see here we have use
<files *.mp3> so try to change your recording format in crontab script.
and reboot apache.
/sbin/service httpd restart
and to use folder recording with password access try to use this:
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
AccessFileName .htaccess
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
then :
create a htaccess file:
vim /var/spool/asterisk/monitorDONE/.htaccess
and put this:
AuthName foldername
AuthUserFile /password/.htpasswd
AuthType Basic
<limit GET POST>
mkdir /var/spool/asterisk/monitorDONE/password
vim /var/spool/asterisk/monitorDONE/password/.htpasswd
and put this as exemple:
admin:password
brak:hJ74qxcNjdmpOijdgD
reboot apache
maybe this will help you enjoy.