阻止WordPress垃圾評論影響用戶體驗? 解決Spam留言方法教學

white smartphone

小編最近發現留言經常出現垃圾留言 / 評論, 並且附上不當用語甚至是連結, 這些網站一般都是成人網站或者是詐騙網站, 儘管小編已經不是自動容許用家發佈評論, 後台依然收到大量垃圾評論, 所以小編在網絡上找到一些解決方法可以運用在你的 WordPress CMS , 就是刪除刪除評論表單網址欄

image 39
多個網站早前收到大量垃圾留言

透過去掉評論表單網址欄,大部分自動留言機械人 Spam Comment Bot 就不會留言,因為他們的原理是希望得到 SEO Backlink, 以及其他網站的流量. 如果你發現你的網站也有這種惡意留言, 歡迎你跟隨以下步驟新增以下程式碼到你的佈景主題的 functions.php 文件中

add_filter(‘comment_form_default_fields’, ‘unset_url_field’);
function unset_url_field($fields){
if(isset($fields[‘url’]))
unset($fields[‘url’]);
return $fields;
}

  • Apple Wallet 駕照功能擴展至猶他州的希望. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • DuckDuckGo搜尋流量激增,用戶不滿Google AI. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • iOS 27 獨立 Siri App 詳細功能與設計一覽. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • 極簡沉浸式閱讀器 EPUB Reader Pro 特價限時免費下載. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • 2026-07-24
  • 2026-07-24
  • Apple Wallet 駕照功能擴展至猶他州的希望. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • DuckDuckGo搜尋流量激增,用戶不滿Google AI. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • iOS 27 獨立 Siri App 詳細功能與設計一覽. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • 極簡沉浸式閱讀器 EPUB Reader Pro 特價限時免費下載. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24
  • 2026-07-24
  • 2026-07-24
  • 2026-07-24
  • Meta AI支持機器人,助駭客劫持Instagram帳號. Important: Do not include any text, letters, words, or writing in the image.
    2026-07-24