473,387 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Locking the folder containing images

304 100+
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.
May 8 '07 #1
6 1149
RedSon
5,000 Expert 4TB
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.
May 8 '07 #2
Motoma
3,237 Expert 2GB
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.
May 9 '07 #3
gomzi
304 100+
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.
May 9 '07 #4
gomzi
304 100+
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?
May 9 '07 #5
Motoma
3,237 Expert 2GB
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.
May 9 '07 #6
blossam
29
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
Jun 2 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: ywg | last post by:
I'm generating an image using several PHP image routines: imagecreatefromjpeg, imagejpeg, etc. The PHP file containing these routines is meant to be included on web pages just like regular...
11
by: LarryM | last post by:
Hi, NB, not to stop capturing the single displayed Image, but to stop downloading the entire image directory. (In my Website you will do a search, and get some thumbnails, and these can be...
12
by: Jon Maz | last post by:
Hi All, I would like to have the following folder structure for an asp.net website: MasterFolder |---\AppRoot | --- webform.aspx | --- web.config | --- global.asax
5
by: Lucas Ponzo | last post by:
I have the following directory structure: \images \other_images\images There is duplicate names, but at diferent levels. But the Visual Studio Setup Project emits the error: Unable to...
5
by: pmud | last post by:
Hi, On our webserver we have many web projects deployed. Each project has its own folder for Images. Many of the images are common between projects.. I need to create a separate folder in...
3
by: Jess | last post by:
I have an access database that used to be on 1 box and now is on another. There's asp pages calling it. The gals that use it said they used to be able to get into the access database at anytime...
0
by: Skeeve | last post by:
Hi there, I'm trying to create a containing box (relative position), and within it, I'm trying to line that box with four (top, right, left, bottom) thin boxes that contain a repeated background...
2
by: Skeeve | last post by:
Hi there, I'm trying to create a containing box (relative position), and within it, I'm trying to line that box with four (top, right, left, bottom) thin boxes that contain a repeated background...
2
by: Jethro | last post by:
Hi guys currently I have an app which lives immediately under a website : <mysite> files /Bin /Images /includes
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.