Forum Moderators: phranque
I'm going to put some scripts in there that I'm writing a cron job for, and I don't want someone, even myself, from accidentally opening those files and for them to prematurely run the scripts.
Normally I would create a directory not in the public_html folder, but in this instance, I don't have that option.
I've created an .htaccess file at the root level of my directory that just contains:
order deny,allow
deny from all
With my understanding, this will prevent all requests from files and subdirectories in that folder from the internet, but will not affect the server from running these files.
Thanks.