Your best friend for file transfer.Fetch
Help Needed with .htaccess (2 posts)
- Started 11 years ago by apache
- Latest reply 11 years ago from Jim Matthews
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.
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:
deny from all
You'd have one of these clauses for each type of file you wanted to hide.
- Page 1
This topic has been closed.