FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PHP script to only be accessed by cron
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP script to only be accessed by cron [message #175271 is a reply to message #175265] Wed, 31 August 2011 06:43 Go to previous messageGo to previous message
Goran is currently offline  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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: php help
Next Topic: Newbie: very basic jquery drag drop
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 09 20:50:08 GMT 2024

Total time taken to generate the page: 0.04542 seconds