.htaccess 我不能让所有人都拒绝在我的Htaccess中为所有人工作 ErrorDocument 500/errors/notfound.html ErrorDocument 404/errors/notfound.html ErrorDocument 403/errors/notfound.html 选项+FollowSymLinks 重新启动发动机 重写基/ 重写cond%{HTTP_REFERER}^$ 重写cond%{HTTP_REFERER}^http://(www\)?operationtoad.com/*$[NC] 重写规则\(rar | exe | zip | html)$-[F] 命令拒绝,允许 全盘否定 允许从#############

.htaccess 我不能让所有人都拒绝在我的Htaccess中为所有人工作 ErrorDocument 500/errors/notfound.html ErrorDocument 404/errors/notfound.html ErrorDocument 403/errors/notfound.html 选项+FollowSymLinks 重新启动发动机 重写基/ 重写cond%{HTTP_REFERER}^$ 重写cond%{HTTP_REFERER}^http://(www\)?operationtoad.com/*$[NC] 重写规则\(rar | exe | zip | html)$-[F] 命令拒绝,允许 全盘否定 允许从#############,.htaccess,.htaccess,当我在第二个allow from行中添加第二个或第三个用户时,他们可以看到主站点,但他们无法访问/notfound.html或/anonexistingfile.html-他们将看到apache starter页面,或者会收到500错误 现在,如果我把自己从这里移除,我只会在根目录上获得apache测试页面,在其他目录上获得403禁止。。。 您可以用htpassword代替IP,而不允许IP 再仔细检查一下你的重写规则,也许里面有个bug ErrorDocument 500 /errors/no

当我在第二个allow from行中添加第二个或第三个用户时,他们可以看到主站点,但他们无法访问/notfound.html或/anonexistingfile.html-他们将看到apache starter页面,或者会收到500错误


现在,如果我把自己从这里移除,我只会在根目录上获得apache测试页面,在其他目录上获得403禁止。。。 您可以用htpassword代替IP,而不允许IP

再仔细检查一下你的重写规则,也许里面有个bug

ErrorDocument 500 /errors/notfound.html
ErrorDocument 404 /errors/notfound.html
ErrorDocument 403 /errors/notfound.html

Options +FollowSymLinks

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?operationtoad.com/.*$ [NC]
RewriteRule \.(rar|exe|zip|html)$ - [F]
</IfModule>

order deny,allow
deny from all
allow from ##.###.###.##