阅读背景:

如何将公共目录限制在laravel?

来源:互联网 

I am trying to restrict non loggedin users from downloading contents, what I have uploaded in a public directory.I am currently working on Laravel 5.2. So still now what I have done, I just a make a URL which checks the file name and folder name and download the files. In that way, I am hiding my parent folder directory from users. But this is not a good practice because if anybody finds the file URL then they can access it without logging in.I am trying to restrict non loggedin users from




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: