How can i hide my json requests from showing in firebug

雨燕双飞 提交于 2020-01-05 12:21:44

问题


how can i hide my json request URL from firebug console? It appears full as anyone can take it and retrieve our data to their website note i am talking to a third party and i can't do restricted calling domains on it


回答1:


In principle, you can't, and you must design your system so that you don't need to. You can try to obfuscate the request itself, but only if you control the protocol (which it sounds like you may not). But even then you're going to send all the javascript required to obfuscate the request to the browser, where it is available to be reverse engineered.

The final network traffic cannot be hidden from the user. It's their machine and their network. Even if you could stop Firebug somehow, the user can just use Charles. If you did find a way to stop Firebug, it would certainly be reported as a bug and fixed, so I wouldn't spend a lot of your development time on it.

If you need DRM, then you're going to need to investigate DRM (which has its own issues and is far from highly effective), but there's no practical way to do what you're discussing, and certainly not given your third-party restriction.




回答2:


There is no way you can hide your json if the browser requests it.



来源:https://stackoverflow.com/questions/7947471/how-can-i-hide-my-json-requests-from-showing-in-firebug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!