楼主:
LaPass (LaPass)
2016-07-06 16:01:23※ 引述《smsim (crazyM)》之铭言:
: 问apache网站,如何设定某档案只能被内网读取
: 如 content.html 这个档只能被网站里的 read_content.php 档来读取,
: 而一般使用者无法拜访content.html
把你的专案结构改成这样
专案根目录
├非公开目录
│└content.html
└apache指定的web根目录
└read_content.php
读取content.html的动作一律用php执行,不要用框架页
另一个方式是用.hataccess去控制读取整个资料夹的权限
不过我觉得太麻烦了,不如直接把档案移到web root资料夹之外