Hiding some files from client access with Apache httpd

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

    #1

    Hiding some files from client access with Apache httpd

    I want to hide files ending with ".tpl" and ".conf"
    from client access (but I still want server access to them).
    How can I do it?

    With Apache httpd, I can use "Files" directive to
    match those files and deny the client access.
    What if I can't modify httpd.conf and I can use .htaccess?

    How about IIS?





  • Savut

    #2
    Re: Hiding some files from client access with Apache httpd

    Put the same directive in your .htaccess as you did in httpd.conf
    You need to have the required permission to use File inside .htaccess

    OFF TOPIC SUBJECT, APACHE RELATED

    Savut


    "charlie" <hawcue@yahoo.c om> wrote in message
    news:cbh2qg$4as $1@gargoyle.oit .duke.edu...[color=blue]
    >I want to hide files ending with ".tpl" and ".conf"
    > from client access (but I still want server access to them).
    > How can I do it?
    >
    > With Apache httpd, I can use "Files" directive to
    > match those files and deny the client access.
    > What if I can't modify httpd.conf and I can use .htaccess?
    >
    > How about IIS?
    >
    >
    >
    >
    >[/color]

    Comment

    Working...