View Full Version : cron file only accessible by the server
I was woundering, whats the best way of making a cron file only accessible by the server?
I know you could add a .htaccess file etc.., but is there any other ways?
Source
21-07-2008, 10:38 AM
Set it so owner and group can only read, write and exec it.... (Permissions in FTP). If you need the SSH way of chmoding it then ask.
Set it so owner and group can only read, write and exec it.... (Permissions in FTP). If you need the SSH way of chmoding it then ask.
Oh yea, cmod it :P
Good idea xD
Dentafrice
22-07-2008, 12:19 PM
Put it outside of the public_html directory and then put the cron command as php bla.php
I can't remember the options to use.
Independent
22-07-2008, 04:11 PM
Put it outside of the public_html directory and then put the cron command as php bla.php
I can't remember the options to use.
OR..
I can't remember if cgi-bin's files are forbidden to view, maybe try placing in there, and rename the folder to CRON or something.
Baving
23-07-2008, 11:45 AM
If you wish to place it in a public directory place "deny from all" in the htaccess.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.