保护服务器上的文件。 [英] Protecting files on the server.

查看:52
本文介绍了保护服务器上的文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计,

我们为客户提供定制内容。目前我们将文件放在

我们的服务器上,人们有我们提供的程序将下载

文件。这些文件通常是SWF,HTML或JPG文件。我看到问题

它 - 如果你知道文件的名称,你可以从服务器上下载

(目前我们正在使用HTTP / Get但是我我将在新版本中使用WebClient




如果有任何方法可以密码保护文件,那么人们就不能下载

即使他们知道文件名吗?


我想出的解决方案是:


1.将文件作为blob存储在数据库中并阅读(但这可能会因为我们最终会添加可能变得非常大的视频而变得很慢) b $ b 100MB)。


2.写一个网络服务,将文件传回,上面有一个密码




还有其他建议吗?


TIA - Jeff

解决方案

Jeff,


另一种解决方案是让用户在程序中进行身份验证,然后使用

文件在本地目录中,程序将是从外面获取文件的唯一途径




Eliyahu


UJ < FR ** @ nowhere.com>在消息中写道

news:uj ************** @ TK2MSFTNGP15.phx.gbl ...

人们,我们为客户提供定制内容。目前我们将文件放在我们的服务器上,人们有一个我们提供的程序将下载
文件。这些文件通常是SWF,HTML或JPG文件。我看到它的问题 - 如果你知道文件的名称,你可以从
服务器下载它(目前我们正在使用HTTP / Get,但我将要使用<新版本中的WebClient。)

如果有任何密码保护文件的方法,那么即使他们知道文件名,人们也不能下载它们吗? />
我想出的解决方案是:

1.将文件作为blob存储在数据库中并读取它(但这可能会变慢我们最终会添加可以变得非常大的视频到100MB)。

2.编写一个Web服务,将文件传回,上面有一个
密码。

任何其他建议?

TIA - Jeff



Eliyahu,< br $> b $ b我不确定我理解你。这完全是我们已经做过的事情。

问题是当程序到我们的服务器获取文件时,

文件在我们的服务器上不受保护。我想这个问题应该怎样才能保护服务器上的文件,所以程序和只有程序才能获得
访问它们。


杰夫。


" Eliyahu Goldin" <再************* @ monarchmed.com>在消息中写道

news:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

Jeff,

另一种解决方案是让用户在程序中进行身份验证,并将文件放在本地目录中,该程序将成为从中获取文件的唯一方法。外面。

Eliyahu

UJ < FR ** @ nowhere.com>在消息中写道
新闻:uj ************** @ TK2MSFTNGP15.phx.gbl ...

人们,
我们提供定制我们的客户的内容。目前我们将文件放在我们的服务器上,人们有一个我们提供的程序将下载
文件。这些文件通常是SWF,HTML或JPG文件。我看到它的问题 - 如果你知道文件的名称,你可以从
服务器下载它(目前我们正在使用HTTP / Get,但我将要使用<新版本中的WebClient。)

如果有任何密码保护文件的方法,那么即使他们知道文件名,人们也不能下载它们吗? />
我想出的解决方案是:

1.将文件作为blob存储在数据库中并读取它(但这可能会变慢我们最终会添加可以变得非常大的视频到100MB)。

2.编写一个Web服务,将文件传回,上面有一个
密码。

任何其他建议?

TIA - Jeff




Jeff,


您可以关闭网站上的匿名访问权限并仅使用集成的

安全性。集成安全性使用加密的用户名和密码。然后

为您的应用程序创建用户名和密码,以便在对相关文件进行

webrequest时使用。您可以创建一个凭据对象,该对象可以是webrequest可以使用的,以便对网站进行身份验证。


-

真诚,


S. Justin Gengo,MCP

网站开发人员/程序员

www.aboutfortunate.com


混乱无序。

Nietzsche

" UJ" < FR ** @ nowhere.com>在留言中写道

news:uO ************* @ TK2MSFTNGP14.phx.gbl ...

Eliyahu,
我不确定我理解你。这完全是我们已经做过的事情。
问题是当程序到我们的服务器获取文件时,
文件在我们的服务器上不受保护。我想问题是如何保护服务器上的文件,以便程序和只有
程序可以访问它们。

杰夫。
Eliyahu Goldin <再************* @ monarchmed.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

杰夫,

另一种解决方案是让用户在程序中进行身份验证,并将文件放在本地目录中,该程序将成为从外部获取文件的唯一方式。 />
Eliyahu

UJ < FR ** @ nowhere.com>在消息中写道
新闻:uj ************** @ TK2MSFTNGP15.phx.gbl ...

人们,
我们提供定制我们的客户的内容。目前我们将文件
放在我们的服务器上,人们有一个我们提供的程序将下载文件。这些文件通常是SWF,HTML或JPG文件。问题
我认为 - 如果你知道文件的名称,你可以从服务器下载
(目前我们正在使用HTTP / Get,但我将会是
在新版本中使用WebClient。)

如果有任何密码保护文件的方法,那么即使他们知道文件名,人们也不能下载它们吗? />
我想出的解决方案是:

1.将文件作为blob存储在数据库中并读取它(但这可能会变慢我们最终会添加可以变得非常大的视频到100MB)。

2.编写一个Web服务,将文件传回,上面有一个
密码。

任何其他建议?

TIA - Jeff





Folks,
We provide custom content for our customers. Currently we put the files on
our server and people have a program we provide that will download the
files. These files are usually SWF, HTML or JPG files. The problem as I see
it - if you know the name of the file, you could download it off the server
(currently we are using an HTTP/Get but I''m going to be using WebClient in
the new version.)

If there any way to password protect the file so people can''t just download
them even if they know the file name?

The solutions I''ve come up with are:

1. Store the file in the database as a blob and read it (but this could get
slow as we will eventually add video which could get really big - up to
100MB).

2. Write a web service that will transfer the file back that has a password
on it.

Any other suggestions?

TIA - Jeff

解决方案

Jeff,

Another solution is to have the users authenticated in the program and have
the files sitting in a local directory that the program will be the only way
of getting to the files from outside.

Eliyahu

"UJ" <fr**@nowhere.com> wrote in message
news:uj**************@TK2MSFTNGP15.phx.gbl...

Folks,
We provide custom content for our customers. Currently we put the files on
our server and people have a program we provide that will download the
files. These files are usually SWF, HTML or JPG files. The problem as I
see it - if you know the name of the file, you could download it off the
server (currently we are using an HTTP/Get but I''m going to be using
WebClient in the new version.)

If there any way to password protect the file so people can''t just
download them even if they know the file name?

The solutions I''ve come up with are:

1. Store the file in the database as a blob and read it (but this could
get slow as we will eventually add video which could get really big - up
to 100MB).

2. Write a web service that will transfer the file back that has a
password on it.

Any other suggestions?

TIA - Jeff



Eliyahu,
I''m not sure I understand you. That is essentilly what we already do. The
problem is when the program goes out to our server to get the file, the
files are unprotected on our server. I guess the question becomes how should
I protect the files on the server so the program and only the program can
access them.

Jeff.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Jeff,

Another solution is to have the users authenticated in the program and
have the files sitting in a local directory that the program will be the
only way of getting to the files from outside.

Eliyahu

"UJ" <fr**@nowhere.com> wrote in message
news:uj**************@TK2MSFTNGP15.phx.gbl...

Folks,
We provide custom content for our customers. Currently we put the files
on our server and people have a program we provide that will download the
files. These files are usually SWF, HTML or JPG files. The problem as I
see it - if you know the name of the file, you could download it off the
server (currently we are using an HTTP/Get but I''m going to be using
WebClient in the new version.)

If there any way to password protect the file so people can''t just
download them even if they know the file name?

The solutions I''ve come up with are:

1. Store the file in the database as a blob and read it (but this could
get slow as we will eventually add video which could get really big - up
to 100MB).

2. Write a web service that will transfer the file back that has a
password on it.

Any other suggestions?

TIA - Jeff




Jeff,

You could turn off anonymous access on the website and use only integrated
security. Integrated security uses encrypted user names and passwords. Then
create a username and password for your application to use when it makes the
webrequest for a file in question. You can create a Credential object that
the webrequest may use in order to authenticate to the website.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"UJ" <fr**@nowhere.com> wrote in message
news:uO*************@TK2MSFTNGP14.phx.gbl...

Eliyahu,
I''m not sure I understand you. That is essentilly what we already do. The
problem is when the program goes out to our server to get the file, the
files are unprotected on our server. I guess the question becomes how
should I protect the files on the server so the program and only the
program can access them.

Jeff.

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Jeff,

Another solution is to have the users authenticated in the program and
have the files sitting in a local directory that the program will be the
only way of getting to the files from outside.

Eliyahu

"UJ" <fr**@nowhere.com> wrote in message
news:uj**************@TK2MSFTNGP15.phx.gbl...

Folks,
We provide custom content for our customers. Currently we put the files
on our server and people have a program we provide that will download
the files. These files are usually SWF, HTML or JPG files. The problem
as I see it - if you know the name of the file, you could download it
off the server (currently we are using an HTTP/Get but I''m going to be
using WebClient in the new version.)

If there any way to password protect the file so people can''t just
download them even if they know the file name?

The solutions I''ve come up with are:

1. Store the file in the database as a blob and read it (but this could
get slow as we will eventually add video which could get really big - up
to 100MB).

2. Write a web service that will transfer the file back that has a
password on it.

Any other suggestions?

TIA - Jeff





这篇关于保护服务器上的文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆