Hack Forums
[Help] HTPasswd only for dir. - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Webmasters (https://hackforums.net/forumdisplay.php?fid=141)
+---- Forum: Website Construction (https://hackforums.net/forumdisplay.php?fid=50)
+---- Thread: [Help] HTPasswd only for dir. (/showthread.php?tid=4428651)



[Help] HTPasswd only for dir. - ๖ۣۜJava - Sep 2, 2014

I need to make a htpasswd but only for the directory and not for any of the files in the dir. The files have no extensions, but they're viewable.
Is this possible?
Files "*" makes then doing satisfy any also makes the directory unpassword protected.
Please help.


* - Xorex - Sep 3, 2014

So you do not want people to access the directory and not see the files?

Code
# ALLOW USER BY IP
<Limit GET POST>
order deny,allow
deny from all
allow from IP you choose
</Limit>

ErrorDocument 403 http://www.google.com



* - ๖ۣۜJava - Sep 3, 2014

(Sep 3, 2014 04:27 PM)Xorex Wrote:  So you do not want people to access the directory and not see the files?

Code
# ALLOW USER BY IP
<Limit GET POST>
order deny,allow
deny from all
allow from IP you choose
</Limit>

ErrorDocument 403 http://www.google.com

Problem is it's using cloudflare, so I need to do that but with a password instead.


* - • α∂∂ιcтιση • - Sep 4, 2014

https://hackforums.net/showthread.php?tid=4135839

Check here.