How does the CI framework restrict users from directly accessing the footage directory without logging in?

as mentioned in the title, the CI framework can directly access the material storage directory without logging in. How to restrict it?

Php
Nov.29,2021

this is not easy to handle. Access to the rewrite material directory is all handled through php. Otherwise, the link is random, control the validity of the link, so that you can log in to get the link.


there is an index.php, under each directory in the CI framework. By using this index.php to determine whether to log in, you can determine whether you can directly access

.
Menu