Deny access to a directory

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spike

    #1

    Deny access to a directory

    I have a directory on my host that i want to protect.

    Users should not be able to access the files in the directory
    by typing the url in the adress bar, but i should be able to
    access them in my php-script.

    I tried to use a .htaccess file but could not get it to work.
    I also tried to place the directory above the WWW root, but there i
    could not access them.

    Any tips?

    Thank you
  • Daniel Tryba

    #2
    Re: Deny access to a directory

    spike <joan@ljungh.se > wrote:[color=blue]
    > I tried to use a .htaccess file but could not get it to work.[/color]

    Please be more verbose. What did you try? What were the errors you got?
    [color=blue]
    > I also tried to place the directory above the WWW root, but there i
    > could not access them.[/color]

    This is the best solution IMHO, so again: please tell us what you tried
    and where you failed...

    --

    Daniel Tryba

    Comment

    Working...