[WordPress] 外掛分享: Disable Directory Listings

前言介紹

  • 這款 WordPress 外掛「Disable Directory Listings」是 2011-07-28 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2011-07-29,距離現在已有 5028 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

coffee2code |

外掛標籤

Apache | privacy | security | coffee2code | directory listings |

內容簡介

此外掛可防止虛擬目錄列出目錄內容,或在虛擬目錄列出時顯示自定義頁面。

如果網站的某個目錄中沒有索引檔案(例如 index.html 或 index.php),則 Apache 網頁伺服器可自動顯示該目錄的內容列表。這可能會將檔案和資訊公開給訪客。當然,網頁伺服器可以設定為不這樣做(建議做法),但有時候您可能無權限(因為您在共享主機上)、無專業技術知識,或者您想有選擇性地禁止虛擬目錄列表。這種情況下,此外掛就能提供幫助。

如果您要測試您的網站是否啟用了虛擬目錄列表,請嘗試訪問 http://www.YOURSITE.com/wp-includes(顯然,請將域名改為您自己的)。如果您看到 PHP 文件列表,那麼您的網站就啟用了虛擬目錄列表。

如果您的網頁伺服器生成虛擬目錄列表,此外掛可以防止訪客查看特定目錄(或所有目錄)的內容。此外,它還允許您將 WordPress 頁面用作目錄索引。

默認情況下,以下目錄受到保護:

wp-includes/
wp-content/
wp-content/plugins/
wp-content/themes/

它不會默認保護任何其他目錄。您可以通過外掛的管理設置頁面進行更改。

提示:當此外掛被啟用(更具體地說是在遵循下面的說明更新永久連結結構之後),WordPress 將生成主題 404 - 找不到頁面。如果您要創建具有與禁用的目錄之一(例如 'wp-includes' 或 'wp-content')相同名字的頁面,則該頁面將顯示,而不是顯示404錯誤訊息。如果您想顯示“外掛”和“主題”目錄的頁面,則必須將它們創建為“wp-content”頁面的子頁面。

注意:此外掛只適用於 Apache 網頁伺服器。

連結: 插件主頁 | 作者主頁

原文外掛簡介

Prevent virtual directory listing services from listing the contents of directories, and/or show a page in place of a directory’s listing.
The Apache web server can be configured to automatically display the listings of the contents of a web site’s file directory if no index file (i.e. index.html or index.php) is present. This can expose files and information to visitors. Of course the web server could be configured to not do this (the recommended approach), but sometimes you don’t have permission (you’re on a shared host), the know-how, or you want to selectively disallow virtual directory listings. That’s where this plugin can help.
If you want to test if your site has virtual directory listings enabled, try visiting http://www.YOURSITE.com/wp-includes (obviously, change the domain to match your own). If you see a listing of PHP files then virtual directory listing is enabled for your site.
This plugin can prevent visitors from seeing the contents of certain (or all) directories on your site (assuming your web server generates virtual directory listings). It also allows you to use a WordPress page as the index for a directory
By default, the following directories are protected:

wp-includes/
wp-content/
wp-content/plugins/
wp-content/themes/

It does NOT protect any other directory by default. You can change this via the plugin’s admin settings page.
TIP: When this plugin is activated (and more specifically, ater the permalink structure is updated as per the instructions below), WordPress will generate the themed 404 – Not Found page. If you were to create a Page with the same name as one of the directories being disabled (i.e. ‘wp-includes’ or ‘wp-content’) then that page will be displayed instead of the 404 error message. If you want to display a page for the ‘plugins’ and ‘themes’ directory, you must create them as children pages of a ‘wp-content’ page.
NOTE: This plugin only works for the Apache web server.
Links: Plugin Homepage | Author Homepage

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Disable Directory Listings」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


2.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Cookie Notice & Compliance for GDPR / CCPA 》Cookie Notice 提供簡單易定制的網站橫幅,以協助你的網站遵守歐盟 GDPR cookie 法律以及 CCPA 法規下的某些cookie同意要求,並與 Cookie Compliance 無縫集...。
  • Complianz – GDPR/CCPA Cookie Consent 》Complianz 是一款支援 GDPR、ePrivacy、DSGVO、TTDSG、LGPD、POPIA、APA、RGPD、CCPA/CPRA和PIPEDA 的插件,提供基於Cookie掃描結果的條件Cookie通知和自定義...。
  • WP Consent API 》WP Consent API 是一個外掛,可以標準化插件之間同意的同意類別溝通。它需要使用 Cookie 標語插件和至少一個支援 WP Consent API 的其他插件。, , 有了這個插...。
  • Termly – GDPR/CCPA Cookie Consent Banner 》Termly 的 GDPR Cookie Consent Banner 是 WordPress 中最簡便、有效、且流行之 cookie 同意外掛之一。透過 Termly 所提供之自訂 cookie 同意橫幅及 cookie ...。
  • Statify 》Statify 提供了一個簡單明瞭且節省空間的網站瀏覽次數查詢功能。它是隱私友好的,因為它既不使用 Cookies,也不使用第三方。, 一個互動圖表後面會顯示參照來...。
  • Usercentrics Cookiebot – Cookie Banner & Privacy Compliance for GDPR/CCPA/Google Consent Mode 》Cookiebot Consent Management Platform (CMP) 是一個易於使用且全自動的 WordPress Cookie 橫幅。它可符合 GDPR、LGPD、CCPA 及其他隱私法規,並通過讓網站...。
  • Koko Analytics 》Koko Analytics 是一款針對 WordPress 的隱私友好型分析外掛程式。它不使用任何外部服務,所以您的訪客資料永遠不會與任何第三方公司分享。, 此外,它不會收...。
  • Force Login 》這款 WordPress 外掛能夠輕鬆地透過設定需要登入來隱藏您的網站,讓訪客必須先進行登入才能查看網站。只需按下開關,就能完成。, 讓您的網站在還未公開之前保...。
  • WP DSGVO Tools (GDPR) 》一站式解決方案, 作為 WP GDPR 的使用者,您只需要完成兩個簡單的任務:, , 選擇使用的服務, 填寫幾個輸入欄位, , WP GDPR 其他所有事項都會處理:, , 創建 c...。
  • Restricted Site Access 》此外掛能限制訪客的存取權限,只有登入或從特定IP地址存取的訪客才能訪問您的網站;同時,還能將被限制的訪客引導至登入頁面、重新導向、顯示訊息或頁面等功...。
  • Statify – Extended Evaluation 》這個外掛程式評估了使用隱私友好的Statify外掛所收集的數據。Statify僅儲存每個頁面瀏覽的日期、引薦人和目標網址。, 這個外掛程式根據以下標準進行評估:, ,...。
  • WP Hide Post 》這個外掛強在幫助你完全控制文章的顯示方式。在 WordPress 網誌上,一般加入的文章會顯示在首頁中,通常是第一篇位置,也會同樣顯示在分類、標籤、存檔頁面等...。
  • PublishPress Permissions: Control User Access for Posts, Pages, Categories, Tags 》或標籤,你會看到一個名為「權限:編輯此內容」的方塊,它允許你為每個用戶角色、個別用戶或用戶群組設置「啟用」或「拒絕」的權限。你還可以設置所有訪客和...。
  • Plausible Analytics 》Plausible Analytics 是一個簡單、開源、輕量且注重隱私的網站分析工具,是 Google Analytics 的替代品。, , Plausible Analytics 不使用 cookies,完全符合 ...。
  • Lazy Load for Videos 》這個外掛改善了頁面加載時間,提高了你的 Google PageSpeed 指數。它與 oEmbed 配合使用,可以將嵌入的 YouTube 和 Vimeo 視頻替換為可點擊的預覽圖片。, 通...。

文章
Filter
Apply Filters
Mastodon