Prevent outside access to hesk_pop3.php - how?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
scanreg
Posts: 30
Joined: Thu Mar 12, 2009 12:54 pm

Prevent outside access to hesk_pop3.php - how?

Post 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
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
scanreg
Posts: 30
Joined: Thu Mar 12, 2009 12:54 pm

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

Post by scanreg »

okay, thanks :)
Post Reply