Results 1 to 4 of 4

Thread: need help with keeping safe my files...

  1. #1
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default need help with keeping safe my files...

    I created many directories in my database like: Pictures, data and etc...
    But how i can keep those files hidden? because everyone can open those folders with pictures.{egzample: www.xxx.lt/pictures/mouse.jpg} Everyone can see what is in that directory. i want, that if someone enters that, thay will get negative answer, not my picture.
    im looking forward to this.. thanks

  2. #2
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    For Pictures, you can set your server to have hotlinking disabled. As for the folder directories,you can create an index.[extension] file that says "Access Denied" or something to that effect.

    Additionally, you can password-protect directories thru your hosting system [you can ask your hosting provider on howto do it. In cPanel at least, it's very simple.]

    But this question shouldn't have been posted under "PHP", php scripting doesn't have the ability to manipulate your server such as create password-protect directories, etc.

    Good luck!
    - Josh

  3. The Following User Says Thank You to JShor For This Useful Post:

    auriaks (08-07-2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    399
    Thanks
    42
    Thanked 4 Times in 4 Posts

    Default

    thanks and sorry... i cant find where to write like that

  5. #4
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    557
    Thanks
    8
    Thanked 66 Times in 66 Posts

    Default

    No problem. Btw, for directories, usually I have an index.php file which redirects [via header();] to the home page.

    Like this:
    PHP Code:
    <?php

    header
    ("Location ../index.php");

    ?>
    - Josh

Bookmarks

Posting Permissions

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