Protecting controller action access - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Protecting controller action access (/showthread.php?tid=57247) |
Protecting controller action access - El Forum - 02-28-2013 [eluser]davidMC1982[/eluser] I have a controller method/function/action that produces a CSV file of certain database records. What would be the best way to limit access to this function? I don't want to use authentication on the site itself, but could use a DB table of allowed URL's or IP's or similar. htaccess would be another option. There's no real data/security issue as it's only data that could be scraped directly from the site anyway. An external server will be downloading the CSV. Thanks, David Protecting controller action access - El Forum - 02-28-2013 [eluser]InsiteFX[/eluser] Something like this: Code: public function index() |