Discuz!小编 发表于 2025-12-6 21:08:23

设置指定IP之后管理员无法访问,bug? New

后台访问控制里面有个设置只允许指定ip访问,管理员不受影响,我把自己IP填进去之后,结果所有IP都访问不了,我本机管理员访问也提示禁止,后台也进去,怎么解决?








我知道答案 回答被采纳将会获得1 贡献 已有6人回答

KarlMock59 发表于 2025-12-6 21:08:31

先确定版本号,再描述清楚复现方法和路径

凡若尘 发表于 2025-12-6 21:09:03

大佬,x3.5版本

KarlMock59 发表于 2025-12-6 21:09:27

另外,里面写的是:
       

                                          只有当用户处于本列表中的 IP 地址时才可以访问本站点,列表以外的地址访问将视为 IP 被禁止,仅适用于诸如企业、学校内部站点等极个别场合。本功能对管理员没有特例,如果管理员不在此列表范围内将同样不能登录,请务必慎重使用本功能。            
                                       
                                       
         

                        管理员不是特例……所以一样受限
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.ce-block {    margin-bottom: 20px;}.ce-block__content, .ce-toolbar__content {    margin-left: auto;    margin-right: auto;}.cdx-quote {    position: relative;    background-color: #f8f8f8;    padding: 24px!important;    margin: 0px;    border-radius: 12px;    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);    overflow: hidden;}.quote-background-icon {    position: absolute;    top: 10px;    right: 10px;    opacity: 0.2;    z-index: 1;}.cdx-quote__text {    min-height: 30px;    margin-bottom: 10px;    font-size: 16px;    line-height: 1.5;    color: #333;}.cdx-quote__caption {    padding: 10px 20px 0px 20px;    font-size: 14px;    color: #777;}.cdx-quote__caption-left {    text-align: left;}.cdx-quote__caption-center {    text-align: center;}.cdx-quote__caption-right {    text-align: right;}.cdx-quote ::before {    position: absolute;    content: attr(data-placeholder);    color: #bbb;    font-weight: normal;    opacity: 0;}.cdx-quote :empty::before {    opacity: 1;}.cdx-quote :empty:focus::before {    opacity: 0;}.cdx-quote-settings {    display: flex;}.cdx-quote-settings .cdx-settings-button {    width: 50%;}.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;}

KarlMock59 发表于 2025-12-6 21:09:49

那可能我没看清楚,管理员都受限制,那设置了之后咋整,感觉不合理啊,关键是我填写的是我本机的IP

海军大都督 发表于 2025-12-6 21:10:35

你的本机IP,未必是访问网站时的IP哦,这其中还涉及到CDN等多种情况。被禁之后,只能去数据库操作删掉这个设定了

海军大都督 发表于 2025-12-6 21:11:13

请问哪个表?我在pre_common_admincp_session里看到设置的ip,删除之后还是不能访问
页: [1]
查看完整版本: 设置指定IP之后管理员无法访问,bug? New