Results 1 to 4 of 4
Thread: No public access to file.
-
05-19-2006, 08:45 PM #1Junior Guru Wannabe
- Join Date
- Nov 2005
- Posts
- 56
No public access to file.
Ok, im about to release a script and am on possibly my last issue before it is ready for launch.
One of my files needs to be protected so that ONLY a cronjob can execute. How would i do this?
-
05-19-2006, 09:56 PM #2Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 1,303
there're different ways to do it: put it in a separate folder and chmod the folder to not allow public have any access to it or just place it outsie webroot.
-
05-19-2006, 10:47 PM #3Web Hosting Master
- Join Date
- Mar 2005
- Location
- Athens, Greece
- Posts
- 1,763
or deny access to the specific file with .htaccess or put it in a folder that is password protected ...
-
05-20-2006, 12:51 AM #4Newbie
- Join Date
- May 2006
- Posts
- 8
One trick I've found is to name the file something that begins with a period. As is standard on UNIX systems, 'dot files' are considered hidden--the webserver won't serve them.