WebForms应用程序中的秘密图像路径 [英] Secret image path in WebForms application

查看:72
本文介绍了WebForms应用程序中的秘密图像路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我正在使用Visual Studio 2008(.NET framework 3.5),目前我正在使用c#将图像上传到我的ASP.NET webforms应用程序。如果有人复制我的图片网址并在新窗口/标签中打开,则会向用户显示我网站的完整目录结构,例如http://domain.name/images/companylogo/logo599.jpg

我想隐藏我的目录结构并显示图像路径如下:



http://www.zameen.com/common/resize.php?img = 4 / 303088.jpg&d =&w = 250&h = 147&r = 1

http://www.zameen.com/common/resize.php?img=7/165/bhurbun_continental_apartments_380.jpg&d=250&w= 250&h = 180&r = 1

http://www.zameen.com/common/resize.php?img=2/156050.jpg&d=80&m=1



要隐藏我的站点目录结构,我配置了imageshack API来上传图像,但要求与上面的路径类似。我没有得到如何管理上述路径格式。感谢您的帮助。

Hi I am using Visual Studio 2008 (.NET framework 3.5), currently I am uploading images to my ASP.NET webforms application in c#. If some one copies my image url and opens in new window/tab then complete directory structure of my site is revealed to the user, some thing like http://domain.name/images/companylogo/logo599.jpg
I want to hide my directory structure and show image path something like:

http://www.zameen.com/common/resize.php?img=4/303088.jpg&d=&w=250&h=147&r=1
http://www.zameen.com/common/resize.php?img=7/165/bhurbun_continental_apartments_380.jpg&d=250&w=250&h=180&r=1
http://www.zameen.com/common/resize.php?img=2/156050.jpg&d=80&m=1

To hide my site directory structure I configured the imageshack API to upload images but requirements are like the path above. I am not getting how to manage the path format stated above. Thanks for any help.

推荐答案

这篇关于WebForms应用程序中的秘密图像路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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