.htaccess拒绝访问文件

时间:2018-02-01 20:39:49

标签: php .htaccess

我写了以下.htaccess文件:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

<Files ~ "^.*\.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</Files>

<Files "indexbig.php">
Order Allow,Deny
Deny from all
Allow from 127.0.0.1
</Files>

我想拒绝访问该文件&#34; indexbig.php&#34;但只允许从本地服务器访问。不知何故,这允许访问每个主机。谁能帮助我?

0 个答案:

没有答案