Forgot password?
 Create new account
View 310|Reply 17

[已解决] infinityfree 频繁干扰

[Copy link]

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

hbghlyj Posted at 2025-1-13 22:07:54 |Read mode
Last edited by hbghlyj at 2025-3-3 07:12:07已解决

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-1-13 22:13:29
我也遇到过,一直不明所以……

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-20 14:52:17
hbghlyj 发表于 2025-2-20 05:03
可以统计一下遇到这种情况的概率吗
怎么统计?
只是偶尔遇到,凭印象大概100次回帖会有一两次吧

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-20 20:00:33
另外,链接中有时出现的 &i=1 之类的会不会也是这个报错的原因之一?

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-20 23:02:09
hbghlyj 发表于 2025-2-20 22:36
确实!每次出错都因为URL有 &i=1 或 &i=2

建议大家当编辑帖子时,若遇到链接为
我也不清楚什么情况下会出现 &i=1 ,感觉上当我开着 v2ray 的时候出现的机会大些,或许有时网络不好也会,或者刚上来时

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-21 03:10:19
留意了一下,似乎出现 &i=1 的频率并不低,印象中以前不是这样的,是最近才这样还是我印象错了呢?
或许……会不会与先前的 502 有关,infinityfree 调整了网站设置?
毕竟 &i=1 这玩意与 discuz 无关,而与 infinityfree 有关。

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-21 09:58:50
有时点回复或点评那浮动框甚至出不来😳也是最近才有的情况

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-21 18:45:13
我不懂😳

Comment

Discuz设计的是每隔115天失效吧  Posted at 2025-2-21 18:54

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

 Author| hbghlyj Posted at 2025-2-21 18:53:54
kuing 发表于 2025-2-20 06:52
怎么统计?
只是偶尔遇到,凭印象大概100次回帖会有一两次吧
discuz的formhash函数在 /source/function/function_core.php中,
  1. function formhash($specialadd = '') {
  2. global $_G;
  3. $hashadd= defined('IN_ADMINCP') ? 'Only For Discuz! Admin Control Panel' : '';
  4. return substr(md5(substr($_G['timestamp'], 0, -7).$_G['username'].$_G['uid'].$_G['authkey'].$hashadd.$specialadd), 8, 8);
  5. }
Copy the Code
首先,substr($_SGLOBAL['timestamp'], 0, -7),截取时间戳前3位是保证formhash在一定的时间里生效且不变,截取前3位,大概是115天。

3148

Threads

8489

Posts

610K

Credits

Credits
66148
QQ

Show all posts

 Author| hbghlyj Posted at 2025-2-21 18:57:07

10000000 秒 多少天?10000000 秒 是 115.74 天

kuing 发表于 2025-2-20 06:52
凭印象大概100次回帖会有一两次吧
10000000 秒 是 3 个月,23 天,17 小时,46 分钟和 40 秒。

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-24 00:27:15
头像有时会变成“破碎小图”——加载失败

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-26 15:22:15
我进论坛后台,在头部设置里加了一段:
  1. <script>
  2. document.addEventListener("DOMContentLoaded", function() {
  3.     if (window.location.href.match(/i=[123]/)) {
  4.         window.location.href = window.location.href.replace(/[\?&]i=[123]/, '');
  5.     }
  6. });
  7. </script>
Copy the Code

不知道有没有用

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-2-26 17:51:25
Last edited by hbghlyj at 2025-3-3 04:55:14
kuing 发表于 2025-2-26 15:22
我进论坛后台,在头部设置里加了一段:

不知道有没有用
论坛首页或主题列表似乎有没有 i=1 也没什么影响?
要不只对帖子内容页和编辑界面加这段?
或者加个条件判断?比如改成:
  1. <script>
  2. document.addEventListener("DOMContentLoaded", function() {
  3.     var uuu = window.location.href;
  4.     if (uuu.match(/forum\.php\?mod=(viewthread|post)/) && uuu.match(/i=[123]/)) {
  5.         window.location.href = uuu.replace(/[\?&]i=[123]/, '');
  6.     }
  7. });
  8. </script>
Copy the Code


@hbghlyj 你有没有更好的写法或提议?

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-3-1 23:16:17
hbghlyj 发表于 2025-3-1 07:38
无论如何修改论坛的页面,都可能被infinityfree调包

看来只能修改PHP让提交页被迫接受 ...
唉,我都不想再折腾了😔

你的网站还在不?如果还在,要不转移到你那边吧。

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-3-1 23:30:23
hbghlyj 发表于 2025-3-1 23:29
好呀!好呀!欢迎!
那我要怎么做呢?

701

Threads

110K

Posts

910K

Credits

Credits
94145
QQ

Show all posts

kuing Posted at 2025-3-1 23:40:04
是不是先登录那啥 FTP,把所有文件下载下来,然后再导出那个 SQL,两份东西都传你就行了?

手机版Mobile version|Leisure Math Forum

2025-4-20 12:11 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list