Results 1 to 3 of 3
MS Access 2003 Database as exe file Forum: DatabasesReplies: 1
data files location and permission to access from perl cgi script for writing Forum: CGI Perl ForumReplies: 1
Help with Easy File Manager 1.6 Forum: CGI Perl ForumReplies: 7
I need a freeware file manager. Forum: General DiscussionReplies: 3
02-20-2003, 04:20 PM #1
Inhibiting access to files in my file manager
I've been hunting EVERYWHERE on the web to find the answer to this question, but there doesn't seem to an answer out there anywhere, so if someone here could help me, I'd be in your debt forever!
I'm building a web page hosted by Yahoo!, and my concern is that when I give a link to someone, they can delete the file name and access the rest of the files in my file manager. As a generic example, if my site is xyz.com, and I send someone the link to http://xyz.com/xxxx/yyyy.jpg they can erase yyyy.jpg and access the files in the subdirectory xxxx. I want to be able to inhibit outside access like this, i.e., if someone tries to access the files in that subdirectory, I want a pop-up to appear on their screen, letting them know that they do not have access to that information. I've seen it done on other websites, and I want to be able to implement this technique on my own site.
Thank you in advance for any help you might be able to provide!
02-20-2003, 04:47 PM #2
If you can use .htaccess, that would be one way of disabling the ability to view the directory list. The simpler option would be to put an index.html file in each subdirectory that automatically redirects the user back to a selected page. benzden has some code that he uses for this. Hopefully, he'll post it here.
02-21-2003, 10:12 AM #3
Here it is - - -
<META HTTP-EQUIV="Refresh" CONTENT="0;URL=../index.html"></HEAD>
I routinely (when I remember) place it in every new folder I create that doesn't require it's own legitimage index.html file - most often folders containing just images or other files supporting an HTML page located in the parental folder.