I have a GoDaddy server upon which I have a Cron job setup running a php script once per day. I would like to restrict public access to this script. Will restricting the folder in which the script is located via .htaccess hinder my server's internal ability to run the script with the cron job?
.htaccess
are handled by webserver (eg apache). Cron jobs are scheduled tasks which is independent of your htaccess. So non it will not hinder.
Just you need to make sure your script permissions are OK.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.