I have a cron job script in a php file, named cron.php , which runs after every 3 hours. As it is kept in the public html folder, any user can access it. But I don't want that. I'm searching for a process by which I can ensure that, only my server can access that file and run that script. No user will be able to access that file.
To do that, what I need to do?