ik heb dus een webserver (Apache onder Debian) draaien. Als ik nu naar mijn site ga, en dan achter de url (bijv. [url="http://ccXXXXX-X.bla.com/.htpasswd"]http://ccXXXXX-X.bla.com/.htpasswd[/url]) dan zie ik dat bestand. Hoe kan ik voorkomen dat de webserver dat bestand niet laat zien als iemand het aanvraagt???
hetzelfde kan je dus ook voor htpasswd doen, maar het is verstandiger om .htpasswd ergens neer te zetten waar het vanaf internet niet bereikbaar is.# The following lines prevent .htaccess files from being viewed by
# Web clients. Since .htaccess files often contain authorization
# information, access is disallowed for security reasons. Comment
# these lines out if you want Web visitors to see the contents of
# .htaccess files. If you change the AccessFileName directive above,
# be sure to make the corresponding changes here.
#
# Also, folks tend to use names such as .htpasswd for password
# files, so this will protect those as well.
#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
Taaaa taa taa taaaa taa taa ta taaataaaaa.