ROBOT 发表于 2026-4-12 15:33:01

请问如何彻底关闭论坛及相关功能 New

Discuz! X3.5 Release 20250901 UTF-8
发现蜘蛛特别爱无中生有的爬一些根本不存在的论坛页面
Robots.txt已经做如下限制了



Disallow: /forum.php


Disallow: /forum-


Disallow: /thread-


但是搜索引擎还是要爬取一些根本不存在的页面,我一个帖子都没发过


forum.php?mod=viewthread&tid=1429
比如说这样的页面


请问如何可以彻底关闭论坛和相关的功能


1 贡献最佳答案

      直接删了 forum.php文件……      

天外飘仙发表于2025-12-14 19:12:03
[*]详细答案 >

知行社区 发表于 2026-4-12 15:33:21

蜘蛛爬你不存在的地址,你即便关闭了论坛,他一样爬,这些不守规矩的蜘蛛,你开关什么的根本不管用

小冰 发表于 2026-4-12 15:33:39

百度蜘蛛,平时都爬的很正常,只要每天第一个页面爬的论坛相关的地址,当天就不来了

余赚网 发表于 2026-4-12 15:34:13



直接删了 forum.php文件……

站帮网 发表于 2026-4-12 15:34:56

请问删除这个文件,有什么其他负面影响吗?

ROBOT 发表于 2026-4-12 15:35:32

            
            
      
   

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.image-tool {--bg-color: #cdd1e0;--front-color: #388ae5;--border-color: #e8e8eb;}.image-tool__image {    border-radius: 3px;    overflow: hidden;    margin-bottom: 10px;}.image-tool__image-picture {      max-width: 100%;      vertical-align: bottom;      display: block;      margin-left: auto;      margin-right: auto;    }.image-tool__image-preloader {      width: 50px;      height: 50px;      border-radius: 50%;      background-size: cover;      margin: auto;      position: relative;      background-color: #cdd1e0;      background-position: center center;    }.image-tool__image-preloader::after {      content: "";      position: absolute;      z-index: 3;      width: 60px;      height: 60px;      border-radius: 50%;      border: 2px solid #cdd1e0;      border-top-color: #388ae5;      left: 50%;      top: 50%;      margin-top: -30px;      margin-left: -30px;      animation: image-preloader-spin 2s infinite linear;      box-sizing: border-box;      }.image-tool__caption::before {      position: absolute !important;      content: attr(data-placeholder);      color: #707684;      font-weight: normal;      display: none;    }.image-tool__caption:empty::before {      display: block;      }.image-tool__caption:empty:focus::before {      display: none;      }.image-tool--empty .image-tool__image {      display: none;    }.image-tool--empty .image-tool__caption, .image-tool--loading .image-tool__caption {      display: none;    }.image-tool .cdx-button {    display: flex;    align-items: center;    justify-content: center;}.image-tool .cdx-button svg {      height: auto;      margin: 0 6px 0 0;    }.image-tool--filled .cdx-button {      display: none;    }.image-tool--filled .image-tool__image-preloader {      display: none;      }.image-tool--loading .image-tool__image {      min-height: 200px;      display: flex;      border: 1px solid #e8e8eb;      background-color: #fff;    }.image-tool--loading .image-tool__image-picture {      display: none;      }.image-tool--loading .cdx-button {      display: none;    }/**   * Tunes   * ----------------   */.image-tool--withBorder .image-tool__image {      border: 1px solid #e8e8eb;    }.image-tool--withBackground .image-tool__image {      padding: 15px;      background: #cdd1e0;    }.image-tool--withBackground .image-tool__image-picture {      max-width: 60%;      margin: 0 auto;      }.image-tool--stretched .image-tool__image-picture {      width: 100%;      }.image-tool__caption {                text-align: center;                font-size: 14px;                color: #a3a3a3;        }@keyframes image-preloader-spin {0% {    transform: rotate(0deg);}100% {    transform: rotate(360deg);}}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

可可的可 发表于 2026-4-12 15:35:49

删了, 前台的任何 论坛链接就彻底不能访问了
页: [1]
查看完整版本: 请问如何彻底关闭论坛及相关功能 New