Home  >  Article  >  Backend Development  >  关于禁止直接访问文件的有关问题

关于禁止直接访问文件的有关问题

WBOY
WBOYOriginal
2016-06-13 11:39:30727browse

关于禁止直接访问文件的问题
如下:
后台生成excel文件,放在a/b/test.xls这里,我不希望别人直接输入http://*.com/a/b/test.xls,我希望有权限的人才能访问,无权的则自动跑转,请问该如何处理呢?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn