设置.htaccess 禁止访问网站根上面的某个php文件

WBOY
Release: 2016-06-13 10:32:42
Original
974 people have browsed it

设置.htaccess 禁止访问网站根下面的某个php文件
设置.htaccess 禁止访问网站根下面的某个php文件,怎么设置呢

------解决方案--------------------
用URL跳转实现
------解决方案--------------------

PHP code
250 # The following lines prevent .htaccess and .htpasswd files from being 251 # viewed by Web clients. 252 #253 <files>254     Require all denied255 </files><div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template