简体   繁体   中英

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.

您可以使用.htaccess规则(如果使用apache服务器)并阻止直接访问...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM