Page 1 of 1

Hesk POP and PIPE - move to under admin

Posted: Mon Jan 14, 2013 1:05 pm
by scanreg
Script URL:
Version of script: 2.4.1
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

we protect our /admin directory using htaccess

would be great if hesk_pop3.php and hesk_pipe.php could be moved under the /admin dir to help protect them as well. we do rename hesk_pop3.php and hesk_pipe.php but placing them under /admin and using the htaccess protection would be great

hth

thanks

Re: Hesk POP and PIPE - move to under admin

Posted: Mon Jan 14, 2013 1:27 pm
by Klemen
You can simply password-protect the two files as well. For example by placing a .htaccess inside "inc/mail" folder with this code:

Code: Select all

<FilesMatch "hesk_pop3.php">
AuthName "Member Only"
AuthType Basic
AuthUserFile /home/username/.htpasswd
require valid-user
</FilesMatch>

<FilesMatch "hesk_pipe.php">
AuthName "Member Only"
AuthType Basic
AuthUserFile /home/username/.htpasswd
require valid-user
</FilesMatch>
Just change /home/username/.htpasswd to the same .htpasswd file you have for the admin folder and you're good to go!

Re: Hesk POP and PIPE - move to under admin

Posted: Mon Jan 14, 2013 3:44 pm
by scanreg
ah, i didn't know that you could pwd protect specific files using htaccess

big thanks! :)