Jump to content

CRON Security


Lou Carey

Recommended Posts

Hi All,

I will be writing a CRON script to update inventory and wish to know if there are particular security measures I should/must follow in order to avoid intrusions? Are there any examples of the current code I can use as an outline/starting point for the security portion of the CRON script?

Thank you for your time,

Lou Carey

Link to comment
Share on other sites

use Configure class.
Configure::UpdateValue('NAME OF VALUE', 'password'); to set it from an textbox in configure (if this is a module)
(I may be a bit off on the code since I write from my head now :P)

then in the cron execution file you get that value from the database Configure::GetValue('NAME OF VALUE'); and compare it to $_GET['password']

in the cronsetup you then set file.php?password=password

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...