logo
  • 教程列表
  • SO官方文档
  • 拒绝访问
    • 拒绝 IP
    • 热链接预防
    • 拒绝从 IP 到文件目录的访问
  1. StackOverflow 文档
  2. Hypertext Access file 教程
  3. 拒绝访问
  4. 拒绝从 IP 到文件目录的访问

拒绝从 IP 到文件目录的访问

Created: November-22, 2018

# Deny access to a directory from the IP 255.0.0.0
<Directory /path/to/directory>
    order allow,deny
    deny from 255.0.0.0
    allow from all
</Directory>

# Deny access to a file from the IP 255.0.0.0
<FilesMatch "^\.ht">
    order allow,deny
    deny from 255.0.0.0
    allow from all
</FilesMatch>
  • 热链接预防

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明