在网站的父目录中保护数据的方法 [英] Ways to secure Data in Parent Directory of website

查看:94
本文介绍了在网站的父目录中保护数据的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有什么方法可以保护来自客户端的数据.



我们可以将身份验证放在父目录上吗?

示例:一般来说,访问网站中使用的图像可以像这样进行访问:

www.websitename.com/images/

如何对此设置限制.

Is there any way by which we can secure our data from the clients.

Or

Can we put authentication over parent directory.

examples:Generally to access the images used in website can be accessed like this:

www.websitename.com/images/

How to put limit on that.

推荐答案

您可以禁用目录浏览.参考:
如何启用目录使用IIS7 web.config浏览 [ ASP.NET身份验证和授权 [ MS支持:如何:控制ASP.NET应用程序中的授权权限 [
You can disable directory browsing. Refer:
How to enable directory browsing with IIS7 web.config [^]

Further, using authentication and authorization, you can put security permissions on any folder of your application:
ASP.NET authentication and authorization[^]
MS Support: HOW TO: Control Authorization Permissions in an ASP.NET Application[^]


URL Authorization in ASP.NET – Securing your websites[^] explains how to set security permissions on individual web pages, web services and sub directories.

Please have a look.


这篇关于在网站的父目录中保护数据的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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