WebService的安全问题?????????????

kewudemao 2003-08-21 06:56:34
我现在在一个固定IP上部署了webservice,提供一些修改数据的方法,可是我怎样防止那些不是我的客户来访问我的webservice,比方说,那些非法客户写一个客户段程序,调用我的webservice里面的方法,进行数据修改!怎样避免这种情况发生呢,是不是有什么可以避免的好办法,谢谢!
...全文
56 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
kewudemao 2003-08-22
  • 打赏
  • 举报
回复
many thanks for saucer's and csharplove's help.
saucer 2003-08-21
  • 打赏
  • 举报
回复
1. authenticate your users

2. if your Webservice is housed in IIS, you can use IIS to filter out requests based on IP: run Internet Services Manager, right click on your web app to open its Properties page, go to Directory Security tab, click on second "Edit.." button, grant or deny IP access

or
3. write a HttpModule to filter out those requests based on IP

csharplove 2003-08-21
  • 打赏
  • 举报
回复
其实,上面的办法只是比较简单的方法,你想深入研究SOAP服务的安全性,可以参考WROX出版的WEB服务高级编程一书,对安全性有介绍
csharplove 2003-08-21
  • 打赏
  • 举报
回复
你在方法里加个密码参数和一个判断语句不就行了吗?

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧