问题:
以下是我放置在.htaccess文件中的代码:
ErrorDocument 403 /403.html
deny from 1.6.0.0/15
deny from 1.22.0.0/15
deny from 1.38.0.0/15
deny from 1.186.0.0/16
deny from 1.187.0.0/16
deny from 5.10.69.96/29
deny from 5.10.70.56/30
deny from 5.10.72.128/29
deny from 5.10.75.184/29
.
.
.
deny from 5.10.86.228/30
deny from 5.10.88.24/29
ip阻止工作正常,但它重定向到默认403错误页面。
答案1:
阻止对所有内容的访问时,也会阻止对custom 403错误页的访问。