Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess for file extensions?

Status
Not open for further replies.

MDLU

IS-IT--Management
Joined
Nov 5, 2003
Messages
102
Location
US
I have .htaccess and .htpasswd working for the directory root as well as the .html files. But you can still access the .php files. Does anybody know what to put in the .htaccess to lock out everything: *.* ? (I have no access to the config files because my site is hosted elsewhere.)

-Jay
 
Hi mate,

Please supply the directory structure you have setup, including where the htaccess file is and what is in it.

By default, it should block all access, not just certain extensions.

Hope this helps

Wullie

Fresh Look - Quality Coldfusion Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
/users - open
/users/projects - includes .htaccess .htpasswd and should be protected

I actually got it to work for this problem, but now I have a new problem- I need a script outside of the protected directory to be able to access the files without making the user type in the password. Any ideas?

-Jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top