Good afternoon
Can this be done? I have an apache server with an application developed in php (yii2), my "problem" is as follows, the app has validation by username and password, if you are logged in the system you can access a page where videos are embedded in a folder called "videos", my question is how I can protect this folder called videos so that nobody can enter it (well maybe only those who are logged in) and check the videos putting the route for example misitio.com/videos/video1. mp4
I already have an index in that folder and an .Itaccess IndexIgnore * .mp4 so that it does not show the file list, but even if someone who is not logged in knows the name of a file, I can visualize it, I want it to be only watch these videos through the page where they are embedded.
How can I avoid this?