How to secure access to SWF file using ASP.NET?

后端 未结 2 1906
礼貌的吻别
礼貌的吻别 2021-01-05 17:51

We have a swf file that we want to secure and make available only to authorized users.

I embedded the file in an aspx page and that works fine, since ASP.NET handles

2条回答
  •  隐瞒了意图╮
    2021-01-05 18:09

    I think that the most easy and fast solution is to Map this extention (.swf) to handle by asp.net.

    I do not know if its works, because I do not have done that, but you can give it a try.

    One other way is to place this files, somewhere hidden, or with complex name, and use an .ashx file to just read and send them. In the .ashx file you need to set the correct Response.ContentType for the flash, and just read and send the correct file.

提交回复
热议问题