Your best friend for file transfer.

Fetch application logoFetch

Help Needed with .htaccess (2 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 20 years ago by apache
  • Latest reply 20 years ago from Jim Matthews
  • apache Member

    Hey everyone

    I have a webfolder that contains .html/php/gif/jpg files. I need to create a .htaccess script that will prevent users from viewing any files in it other than php files.

    Any help will be highly appreciated.


    Posted 20 years ago #

  • Jim Matthews Administrator

    This Google search turns up some tutorials on using .htaccess files:

    I've never used .htaccess to protect individual files (as opposed to entire directories). One of the tutorials recommends putting this text in the .htaccess file:

    <files *.html>
    order allow,deny
    deny from all

    You'd have one of these clauses for each type of file you wanted to hide.

    Jim Matthews
    Fetch Softworks

    Posted 20 years ago #

Topic closed

This topic has been closed.