Hello, I was wondering if it's possible to make a certain PHP file only accessible to the cron command I set up in the cPanel. Meaning, no one can visit it via browser. Thanks!
As long as the file is not in your public_html folder it cannot be seen via a browser...put the file eslewhere and setup the cron job for it... jmacleod
If it is not possible to put it on a private directory you can try this : if ( isset($_SERVER['HTTP_HOST']) ) exit; PHP: