tags:

views:

58

answers:

3

I have a shell script which is called by a cron job. I don't want it to be downloaded via a browser. I have tried the filesmatch htaccess directive but that doesn't seem to stop me calling the url of the file and downloading it.

How can I protect it?

+3  A: 

move it outside of a web accessible dir

Josh Sandlin
+4  A: 

Just don't put it under your webroot.

David Dorward
A: 

Move it out of the directory tree the webserver is serving from. If it's not being invoked by the webserver, it doesn't need to be there.

moonshadow