Results 1 to 4 of 4
  1. #1
    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?

  2. #2
    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.

  3. #3
    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 ...

  4. #4
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •