Codeigniter private functions : If you want make a function hidden from public access you can make it private which will be served only in its current scope. Which will not accessible in url.
Syntax of Codeigniter private functions
private function _yourfunction(){ }
if you try to access this function in url it will not be available.
http://example.com/Controllername/_yourfunction