How to hide/encrypt the ajax requests from network tab in google and other browsers? [duplicate]

痴心易碎 提交于 2019-12-02 22:54:36

问题


I am working on jwplayer and I just want to hide/encrypt the ajax requests that are sent by jwplayer to play the video. The reason is this when jwplayer send request it contains video id and I don't want to reveal it because it is streaming from google drive and any one can leach the same video. Is there any method to hide/encrypt ajax calls from console?

I have tried clear console method console.clear(); but it clears console not network tab.


回答1:


As Max says you can't hide requests and/or stop someone from capturing any video which you download to your site.

The usual solution is to encrypt the video so it can't be viewed or played without a key.




回答2:


  1. Your code doesn't have access to network tab. Network tab shows requests/responses client browser sends. Even if you somehow manage to hide your requests from browsers network tab, client still can see req/res via tools like wireshark.

  2. So you need to introduce some middle-ware between jwplayer and google drive, that will be responsible for securely fetching videos from google drive and serving them to jwplayer without exposing internal id's.



来源:https://stackoverflow.com/questions/44869809/how-to-hide-encrypt-the-ajax-requests-from-network-tab-in-google-and-other-brows

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