适用场合:Linux系统PHP空间
方法:在空间目录上建一个.htaccess文件,写上如下内容
[text]
<Files ~ “^(tbcookie|notify\.xml)$”>
deny from all
</Files>
order deny,allow
[/text]
这上面的代码是禁止通过浏览器访问tbcookie和notify.xml两个文件,可以任意扩充,括号里的内容要符号正则表达式。
Tags: 安全, 技巧
This entry was posted on 星期一, 20 9 月, 2010 at 09:31 and is filed under 东东博客. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.