Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Public folders
Name: fusefan Date: June 5, 2004 at 18:37:41 Pacific OS: Win XP CPU/Ram: 2.4 ghz / 512 meg
Comment:
I'm writing a log program in PHP that writes to a file (log.txt), just displaying visiting IP addresses and browser info. Since this file is in a public folder, I know it can be accessed at www.myaddress.com/log.txt
However, if this file is not linked to the index file or advertised in anyway, can anyone find out that its there? In other words, I'm asking if anyone can get a listing of my public folder and if so how?
which is pretty far fetched, however u can set up .htaccess to restrict any access to a folder directive, and if you want even set a password up so only those who know password can get in
Name: anonproxy Date: June 6, 2004 at 11:27:58 Pacific
Reply:
The only way to know a folder exists is to have a document link to it, a sub folder, or document within it or a sub folder. If there are no URI's that include the folder name, then the folder isn't known through any type of indexing or searching.
Apache has a directory listing module which is enabled by default, but that can be disabled. Consider changing the permissions of the entire folder and making a script with a very simple login that lets you view it's contents.
0
Response Number 3
Name: FBI Agent Date: June 6, 2004 at 13:17:11 Pacific
Reply:
or... you could just make the log file OUT of the web directory making it IMPOSSIBLE for regular people to get to the file
Summary: What's a CD? Btw if you install a webserver then its standard Index will list everything, including files/folder/drives outside the webserver's public folder - if you tell it to. An easy webserver wou...
Summary: That sounds a little over the top to me. Changing read/write permissions of files dynamically doesn't accomplish much, IMHO. I'd suggest puttng the files in a directory outside of the public folder wh...
Summary: > Separate from htdocs Do you mean, outside the web server's public folder? That can't be done. PHP (and other processes in your web server) can read files from anywhere in the computer, even if it is...