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?
Recommended Answers
Jump to PostThis 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
2,366
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Dani
2,366
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Dani
2,366
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
treydawg
0
Newbie Poster
Dani
2,366
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Dani
2,366
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
wfwh
0
Newbie Poster
YUPAPA
0
Light Poster
tommytomato
0
Newbie Poster

nileshgr
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.