且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

限制用户通过URL直接访问我的图像和PDF

更新时间:2023-12-02 23:53:16

//确定文件夹级别在服务器文件系统***问权限



//可以使用IIS



//或使用authontication,限制访问文件夹的授权
// assing folder level access right on server file system

// can do using IIS

// or use authontication , authorisation to limit access to folder


Please  provide me code so that i can implement.
If i am using  authorization and set location tag then handlers is not doing anything because i had set the path of my folder in handler.

 <httpHandlers>
        <add verb="*" path="UserImage/*.jpg" type="MyHttpHandler" />
 </httpHandlers>