• 请不要在回答技术问题时复制粘贴 AI 生成的内容
b7898585
V2EX  ›  程序员

怎么禁止部分目录禁止访问?

  •  
  •   b7898585 · Sep 14, 2015 · 2165 views
    This topic created in 3918 days ago, the information mentioned may be changed or developed.
    用 dede 做的程序,安全是个大问题
    该怎么禁止部分目录禁止访问呢?
    本来想用反代的,直接读取 html 和 css 以及 jpg , php 的禁止访问掉
    但是好像不成功, php 的照样能访问
    Aliencn
        1
    Aliencn  
       Sep 14, 2015
    nginx

    location ~ ^/admin/ {
    return 404;
    }
    b7898585
        2
    b7898585  
    OP
       Sep 15, 2015
    @Aliencn
    apache 的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1254 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:42 · PVG 01:42 · LAX 10:42 · JFK 13:42
    ♥ Do have faith in what you're doing.