I am hosting videos on my website. In my code I link to the path of the video like this.
file: "video/some_random_video.mp4"
This works fine because the location of my .html page and the video folder is in the same directory. Placing the videos here allows anybody to look at the .html source and find the path to where I keep all of my videos essentially allowing them to download them all.
Is it possible to place the videos back a few directories possibly in my root directory such that I can link to them but others cannot have access to them?
This is not working.
file: "./video/some_random_video.mp4"
I am trying to find any way to link to the videos on my server but disable users from checking the source and finding there location.
Any input is appreciated. Thanks!