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

一个允许列举目录下文件的 Apache 服务器,如何绕过目录下的默认页?

  •  
  •   schezuk · May 31, 2015 · 3921 views
    This topic created in 4002 days ago, the information mentioned may be changed or developed.

    比如访问http://e-chinese.org/campussong/MP3/
    服务器不返回403,会列举该目录下的所有文件。

    但是访问http://e-chinese.org/campussong/
    服务器会返回该目录下index.html的内容(并非301重定向,URL也没有补足index.html

    有没有办法绕过这个index.html,让对方服务器列举该目录下的所有文件?
    请求http://e-chinese.org/campussong/./ 仍然被视作请求index.html

    这个问题起因是该网站有死链,猜测是目录结构做过调整,想分析原来指向的位置。
    我没有这个服务器的权限。

    PS: 『你不能过于频繁地创建新主题』和『你访问之前页面的频率不太正常』是什么……
    逼得我不得不用旧账号。

    8 replies    2015-06-01 22:26:30 +08:00
    hicdn
        1
    hicdn  
       May 31, 2015
    删除 index.html
    liuhaotian
        2
    liuhaotian  
       May 31, 2015
    不可以
    shierji
        3
    shierji  
       May 31, 2015
    直接全部爬下来。。。
    schezukNewTos
        4
    schezukNewTos  
       May 31, 2015
    @shierji 有些资源没有被html页面链接到怎么办?
    RIcter
        5
    RIcter  
       May 31, 2015
    绕不过。
    p1n3
        6
    p1n3  
       May 31, 2015
    p1n3
        7
    p1n3  
       May 31, 2015
    vinsony
        8
    vinsony  
       Jun 1, 2015
    去掉DirectoryIndex里面的index.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1522 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 16:48 · PVG 00:48 · LAX 09:48 · JFK 12:48
    ♥ Do have faith in what you're doing.