Is it possible to get a list of files under a directory of a website? How?

前端 未结 6 666
名媛妹妹
名媛妹妹 2021-01-30 12:16

Say I have a website www.abc.com. Under the website directory there is a page secret.html. It can be accessed directly like www.abc.com/secret.html, but there are no pages that

6条回答
  •  悲&欢浪女
    2021-01-30 13:02

    If a website's directory does NOT have an "index...." file, AND .htaccess has NOT been used to block access to the directory itself, then Apache will create an "index of" page for that directory. You can save that page, and its icons, using "Save page as..." along with the "Web page, complete" option (Firefox example). If you own the website, temporarily rename any "index...." file, and reference the directory locally. Then restore your "index...." file.

提交回复
热议问题