Welcome Guest, Not a member yet? Register   Sign In
Restrict access to a particular controller file(used for cron) from being accessed via url
#1

[eluser]Amitabh Roy[/eluser]
Hello everybody,

Got a little problem here. I am developing a site in CI.
Among other controller files, the site has got a controller file(scheduler.php)
used for doing maintenance using cron jobs.

I want to restrict the access to the scheduler file when somebody tries to access
it via browser by typing the url like

Code:
http://www.mysite.com/index.php/scheduler/index

but it should be successfully be run from the cron as it is running now. Any help on this would be greatly appreciated.







Theme © iAndrew 2016 - Forum software by © MyBB