Is there a way to limit access to a specific file through my web server? I'm currently designing a blog-style website and in order to update it, the user must - of course - enter a password. The password is stored in a file elsewhere on the server, and is included into the program via a include(); function call in PHP. The problem is that when I go to the directory where the password file is via a web-browser, the content of the file shows up; in plain-text, with the password readily visible! I have full access to the server (root) so permission changing and such is not a problem. I've tried changing permissions on the file to 400, 440, and 444. Only the last one works; so obviously global read is needed for some reason. But, when it's 444, it can also be viewed via a web browser. Is there a way to change my htaccess files or something to prohibit www access to this file, but allow locally-running PHP scripts access to the file?