Re: PHP script to only be accessed by cron [message #175271 is a reply to message #175265] |
Wed, 31 August 2011 06:43 |
Goran
Messages: 38 Registered: January 2011
Karma:
|
Member |
|
|
On 31.8.2011 2:23, jwcarlton wrote:
> I'm writing a PHP script that I want to ONLY be accessed by a
> predefined cron. Can you guys suggest a way to prevent non-cron
> accesses?
I guess your plan is to put that script inside a public directory. Thats
wrong... put it in some non-public directory end execute it via CLI
(from cron). That way it will be secured from non privileged users.
Forget about securing it from root user, it is not possible.
|
|
|