开发者

How to protect XML like a feed

I have a xml file used by a swf to read and display information, but I would like to 开发者_开发问答protect it from viewing the raw file, but keep swf access to view info.

Is there a way to do this, maybe php, javascript?...


In my opinion any thing that goes to a browser can be hijacked. What your strategy should be is to make it harder to do. Here are possible cases:

  • To protect your data from being sniffed on the wire use SSL ("https://") for you web service
  • Implement application authentication like 2-legged OAuth. This will give you a more granular control over what apps accessing your service.


you could use an .htaccess rule (if using an apache server) and prevent direct access...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜