![]() |
Restrict access to a particular controller file(used for cron) from being accessed via url - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Restrict access to a particular controller file(used for cron) from being accessed via url (/showthread.php?tid=46467) |
Restrict access to a particular controller file(used for cron) from being accessed via url - El Forum - 11-02-2011 [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. |