How to block URL access to the controller |
[eluser]flacznik[/eluser]
Hi, I developed a small application in CI that works well… Codeigniter is my first framework that I use that is why I think following question: my default_controller is named “site” where I placed all the functions that are linked to the basic buttons on the site to view the pages etc. What about all the other controllers? – I mean all the classes that handle some special functionalities like user authentication – these controllers are accessible via URL. It means that any user can access any public function of my application. As there are some functions that I can’t declare as protected/private (because of ajax call for example) how can I protect them? Thank you for advice? PS: BASEPATH at the top of the controller doesnt change anything and the classes functions are still accessible via URL ![]() Example: http://www.my_site.com/site/index.html - ok http://www.my_site.com/site/authentificate/validate - run public function of form validation! how to prevent it? |
Messages In This Thread |
How to block URL access to the controller - by El Forum - 05-20-2013, 05:29 PM
How to block URL access to the controller - by El Forum - 05-21-2013, 11:59 AM
How to block URL access to the controller - by El Forum - 05-21-2013, 01:05 PM
How to block URL access to the controller - by El Forum - 05-21-2013, 02:19 PM
How to block URL access to the controller - by El Forum - 05-21-2013, 03:43 PM
How to block URL access to the controller - by El Forum - 05-21-2013, 05:09 PM
|