What can I do to disable public downloading of my .htaccess file? I am on a Linux box. I can't chmod the file because the web browser still needs access to it, obviously. I know that there is a line I can add to it so that it gives the user a 403 Permission Denied error upon directly accessing it, but I don't remember what it is. Anyone know?
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Recommended Answers
Jump to Post— Member #585571This is a better one I think. It prevents .ht* from public access-
<FilesMatch "^\.ht"> Order deny,allow Deny from All Satisfy All </FilesMatch>
All 11 Replies
treydawg 0 Newbie Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
treydawg 0 Newbie Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
Dani 5,664 The Queen of DaniWeb Administrator Featured Poster
wfwh 0 Newbie Poster
YUPAPA 0 Light Poster
tommytomato 0 Newbie Poster
Member #585571
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.