Connecting Tech Pros Worldwide Forums | Help | Site Map

Locking the folder containing images

Needs Regular Fix
 
Join Date: Mar 2007
Posts: 304
#1: May 8 '07
hi,
I am allowing my user's to upload their images ....
So I would like to know as to how I could lock the folder because currently typing the url in the address bar displays the images.
Also, if i successfully lock the folder will i be able to access it through .net code?
thanks,
gomzi.
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,393
#2: May 8 '07

re: Locking the folder containing images


I think this is a permission you can set up in your webserver. It should be able to control access to certain folders. Doing this would require you to change some configuration files. You will need to open a thread in the appropriate system administration forum if you want to know how to do this.
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#3: May 9 '07

re: Locking the folder containing images


You could do this two ways. The first would be by changing the folder's properties, and the second would be to put an index page in the directory to redirect. I usually tend to favor the second, as it affords me opportunity to see who is fiddling with my sites.
Needs Regular Fix
 
Join Date: Mar 2007
Posts: 304
#4: May 9 '07

re: Locking the folder containing images


Quote:

Originally Posted by RedSon

I think this is a permission you can set up in your webserver. It should be able to control access to certain folders. Doing this would require you to change some configuration files. You will need to open a thread in the appropriate system administration forum if you want to know how to do this.

okay.thanks.will post a ticket to my web hosting provider.
Needs Regular Fix
 
Join Date: Mar 2007
Posts: 304
#5: May 9 '07

re: Locking the folder containing images


Quote:

Originally Posted by Motoma

You could do this two ways. The first would be by changing the folder's properties, and the second would be to put an index page in the directory to redirect. I usually tend to favor the second, as it affords me opportunity to see who is fiddling with my sites.

When you say that it helps you in finding out as to who's messing around with your site, do you mean that you collect the username or IP and store them in a db which can be reviewed by you later on or is something much more than that possible?
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#6: May 9 '07

re: Locking the folder containing images


Quote:

Originally Posted by gomzi

When you say that it helps you in finding out as to who's messing around with your site, do you mean that you collect the username or IP and store them in a db which can be reviewed by you later on or is something much more than that possible?

You can start by getting IPs and any COOKIE or SESSION data your site has given the person. You could then map IPs to users or geographic locations. If it maps to a user, you can send an email warning them, or if you cannot gather any user information you can put a temporary ban on the IP for a couple of minutes to discourage robots and curious individuals.
blossam's Avatar
Newbie
 
Join Date: May 2007
Posts: 29
#7: Jun 2 '07

re: Locking the folder containing images


Quote:

Originally Posted by gomzi

hi,
I am allowing my user's to upload their images ....
So I would like to know as to how I could lock the folder because currently typing the url in the address bar displays the images.
Also, if i successfully lock the folder will i be able to access it through .net code?
thanks,
gomzi.



hi , you can set authentication for some aspx pages in webconfig file if u r working in asp.net
so only authenticate person will allow to see that page
Reply