Page 1 of 1

Prevent outside access to hesk_pop3.php - how?

Posted: Wed Aug 08, 2012 10:13 pm
by scanreg
Script URL:
Version of script: 2.4 RC
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'd like to use either POP fetching or piping

We're testing POP fetching now

How can we limit access to the hesk_pop3.php file to just admin so as to prevent outsiders from triggering mail retrieval?

Thanks

Re: Prevent outside access to hesk_pop3.php - how?

Posted: Thu Aug 09, 2012 5:37 am
by Klemen
The easiest way of doing it is to simply rename "hesk_pop3.php" to a hard to guess name (hesk_k498faskl489tu2oued89dkls.php). This way only you will know what file to call.

Another approach would be protecting the file with a .htaccess password, so when opened in a browser it would require a password whereas when called locally (with Cron) it would still work fine.

Re: Prevent outside access to hesk_pop3.php - how?

Posted: Thu Aug 09, 2012 2:02 pm
by scanreg
okay, thanks :)