471,306 Members | 836 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Strategy to offer files?

We offer files (self-made programs), the customer needs to be authorized to
be able to download them. We're offering currently over 20 files, each file
is in a certain group.. the customer can be in group 1, group 2, group 3...
and he can only download files, which are in the same group as him.

How to make that just with IIS? OK, forms auth., but you can only lock
certain folders, not files, and you can't do it programmaticaly, just with
web.config.

Any ideas? My initial idea was using sql server (storing the files binary
into sql server).
Nov 19 '05 #1
3 911
look at the location tag in web.config. It can be used to restrict access
to individual files from unauthorised access based on named users or groups.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"the friendly display name"
<th********************@discussions.microsoft.co m> wrote in message
news:DB**********************************@microsof t.com...
We offer files (self-made programs), the customer needs to be authorized
to
be able to download them. We're offering currently over 20 files, each
file
is in a certain group.. the customer can be in group 1, group 2, group
3...
and he can only download files, which are in the same group as him.

How to make that just with IIS? OK, forms auth., but you can only lock
certain folders, not files, and you can't do it programmaticaly, just with
web.config.

Any ideas? My initial idea was using sql server (storing the files binary
into sql server).

Nov 19 '05 #2
Didn't know that, thanks.

But anyway - isn't there a way to change web.config programmaticaly? From
the web application? Otherwise, for our purpose, it'll be useless.

"John Timney ( MVP )" wrote:
look at the location tag in web.config. It can be used to restrict access
to individual files from unauthorised access based on named users or groups.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"the friendly display name"
<th********************@discussions.microsoft.co m> wrote in message
news:DB**********************************@microsof t.com...
We offer files (self-made programs), the customer needs to be authorized
to
be able to download them. We're offering currently over 20 files, each
file
is in a certain group.. the customer can be in group 1, group 2, group
3...
and he can only download files, which are in the same group as him.

How to make that just with IIS? OK, forms auth., but you can only lock
certain folders, not files, and you can't do it programmaticaly, just with
web.config.

Any ideas? My initial idea was using sql server (storing the files binary
into sql server).


Nov 19 '05 #3
If at all you are able to do that, your application would be recycled. That
would mean that the session and applicaton information would be lost.

Regards,

Trevor Benedict R

"the friendly display name"
<th********************@discussions.microsoft.co m> wrote in message
news:B5**********************************@microsof t.com...
Didn't know that, thanks.

But anyway - isn't there a way to change web.config programmaticaly? From
the web application? Otherwise, for our purpose, it'll be useless.

"John Timney ( MVP )" wrote:
look at the location tag in web.config. It can be used to restrict
access
to individual files from unauthorised access based on named users or
groups.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"the friendly display name"
<th********************@discussions.microsoft.co m> wrote in message
news:DB**********************************@microsof t.com...
> We offer files (self-made programs), the customer needs to be
> authorized
> to
> be able to download them. We're offering currently over 20 files, each
> file
> is in a certain group.. the customer can be in group 1, group 2, group
> 3...
> and he can only download files, which are in the same group as him.
>
> How to make that just with IIS? OK, forms auth., but you can only lock
> certain folders, not files, and you can't do it programmaticaly, just
> with
> web.config.
>
> Any ideas? My initial idea was using sql server (storing the files
> binary
> into sql server).


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tim Brooks | last post: by
reply views Thread by rosydwin | last post: by

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.