Reputation: 1417
So if I have htaccess deny all on a given folder, but the file we have inside the folder we would like to cron every few hours, are there extra considerations I need to make, or does deny all not apply to this situation?
Upvotes: 1
Views: 482
Reputation: 31813
if the cron job executes the php file directly through the php interpreter, then no, it never goes through the webserver and any webserver settings or configurations are irrelevant.
But, if the cron job executes a web browser or something like wget, making an http request through the webserver, then yes, you'll have a problem. You could have the webserver allow requests from local ips.
Upvotes: 3