Jump to content

Direct file access.


Aureole

Recommended Posts

So just put the file outside of your www directory, simply put it in your root and update the cron to run it from there.

 

If for some strange reason you don't want to do that, put your php file in a different directory, with a .htaccess that says:

deny from all

This way no one will have access to the file using the regular http protocol, only by using FTP, SSH etc. Your cron will be able to run it this way too.

 

Orio.

Link to comment
https://forums.phpfreaks.com/topic/72469-direct-file-access/#findComment-365503
Share on other sites

I was thinking about CHMOD but I need to have it so the cron job can run the script but no-one else can and the permissions are for 'User, 'Group and 'Others'... right now the CHMOD is 644.

 

Users can Read and Write. Group can Read and Others can Read.

 

EDIT: Ok thanks a lot Orio.

Link to comment
https://forums.phpfreaks.com/topic/72469-direct-file-access/#findComment-365505
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.