Computing.Net > Forums > Web Development > Public folders

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

Reply to Message Icon

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?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: Jamie_McCoy
Date: June 6, 2004 at 06:57:37 Pacific
Reply:

if they no the file location, yes

or, they can guess, e.g

www.web/log.txt
www.web/doc.txt
www.web/logger.txt

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

Sign Me Guestbook!

jaymc.co.nr


0

Response Number 2
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

example: c:\windows\www\logs //log directory
example: c:\apache\www //webserver directory

FBI_Agent


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Public folders

Generating HTML Links from Folder C www.computing.net/answers/webdevel/generating-html-links-from-folder-c/3641.html

php data security on server www.computing.net/answers/webdevel/php-data-security-on-server/3074.html

Simple PHP Question www.computing.net/answers/webdevel/simple-php-question/3629.html