riki
riki

Reputation: 11

Hide a video file stored on website from chrome inspect

I have my angular project and logged users can see a video on the homepage. The video is included with a tag like:

video src='assets/video.mp4'

The problem is that if I go to the homepage and I am not logged, I use the chrome inspect and I can see the video on assets. But I want it to be visible only if the user is logged in. Otherwise he cannot access to it.

Is there a way to block user access to a media like this?

Upvotes: 0

Views: 627

Answers (1)

nologin
nologin

Reputation: 1452

As long as the video is part of your Angular-app as asset it will be available in the users browser.

Security by just hiding sthg. is never secure. A common way for this is a request to an external video-source.

Upvotes: 1

Related Questions