惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
D
DataBreaches.Net
雷峰网
雷峰网
WordPress大学
WordPress大学
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
F
Fortinet All Blogs
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Engineering at Meta
Engineering at Meta
月光博客
月光博客
V
Visual Studio Blog
美团技术团队
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
博客园 - 【当耐特】
V
V2EX
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 聂微东

朽丘秋雨

关于备案、主题开发和短暂停更的一点说明 | 柯讴朽丘的生活日志 如何启用域名DNSSEC的设置以及吃瓜某蒂云服务商跑路这件事 快速登记自己的作品版权合法保护自己的绘画等艺术作品 实现Artalk中间页安全跳转和表情包小图BUG预览 最近的改动和生活 小柯庆生这件事 一则域名通知申明 春节游记 舟终末地初玩体验 给Hexo和留言添加跳转中间页 再见2025,你好2026 小站最新装修 25年11月灌水闲说 放下热爱,归向烟火,致大家的一封告别与交代信 比起顺意哄劝,我选笨拙地托你往亮处走 25年7月小结 代际观念与亲情现实的双重困局 25年6月小结 封建派还是自由派,真的是我封建吗 心悦君兮君不知,一寸相思一寸灰 25年4月小结 四月自我笔记 25年3月小结 25年2月小结 25年1月小结 漂泊异乡终归巢 社会变迁与个人成长:一种代际观察 好耶,热乎着,新形象! 再见2024,你好2025 24年12月小结
简易的链接反馈
klcdm · 2026-02-01 · via 朽丘秋雨
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>朽秋秋雨链接反馈</title>
<!-- 核心:禁止搜索引擎抓取整个页面 + 禁止跟踪外链 -->
<meta name="robots" content="noindex, nofollow, noarchive, nosnippet">
<meta name="referrer" content="no-referrer">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body {
background: linear-gradient(135deg, #1a202c, #2d3748);
color: #e2e8f0;
min-height: 100vh;
padding: 20px;
}
.container {
max-width: 1000px;
margin: 0 auto;
background: rgba(30, 41, 59, 0.8);
border-radius: 12px;
box-shadow: 0 0 20px rgba(79, 209, 197, 0.2);
border: 1px solid rgba(79, 209, 197, 0.3);
overflow: hidden;
}
.header {
padding: 20px;
background: linear-gradient(90deg, #2563eb, #0ea5e9);
text-align: center;
border-bottom: 1px solid rgba(79, 209, 197, 0.5);
}
.header h1 {
font-size: 24px;
color: #fff;
font-weight: 600;
}
.btn-group {
display: flex;
justify-content: center;
gap: 20px;
padding: 20px;
border-bottom: 1px solid rgba(79, 209, 197, 0.2);
}
.btn {
padding: 10px 30px;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
color: #fff;
}
.btn-submit {
background: #2563eb;
}
.btn-submit:hover {
background: #0ea5e9;
box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}
.btn-board {
background: #0ea5e9;
}
.btn-board:hover {
background: #2563eb;
box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}
.content {
padding: 30px;
display: none;
}
.content.active {
display: block;
}
/* 提交表单样式 */
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
color: #94a3b8;
font-weight: 600;
}
.form-control {
width: 100%;
padding: 12px 15px;
background: rgba(15, 23, 42, 0.8);
border: 1px solid rgba(79, 209, 197, 0.3);
border-radius: 6px;
color: #e2e8f0;
font-size: 16px;
}
.form-control:focus {
outline: none;
border-color: #0ea5e9;
box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}
textarea.form-control {
min-height: 120px;
resize: vertical;
}
.submit-btn {
width: 100%;
padding: 12px;
background: #2563eb;
color: #fff;
border: none;
border-radius: 6px;
font-size: 18px;
cursor: pointer;
transition: all 0.3s;
}
.submit-btn:hover {
background: #0ea5e9;
box-shadow: 0 0 15px rgba(79, 209, 197, 0.5);
}
/* 公示板核心样式 */
.board-content {
padding: 10px;
}
.feedback-item {
background: rgba(15, 23, 42, 0.7);
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
border: 1px solid rgba(79, 209, 197, 0.3);
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.feedback-header {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 15px;
align-items: center;
padding-bottom: 10px;
border-bottom: 1px dashed rgba(79, 209, 197, 0.4);
}
.feedback-name {
color: #0ea5e9;
font-weight: 600;
font-size: 16px;
}
.feedback-status {
padding: 4px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}
.status-processing {
background: rgba(234, 179, 8, 0.2);
color: #fbbf24;
border: 1px dashed #fbbf24;
}
.status-handled {
background: rgba(34, 197, 94, 0.2);
color: #22c55e;
border: 1px dashed #22c55e;
}
.status-unneeded {
background: rgba(156, 163, 175, 0.2);
color: #9ca3af;
border: 1px dashed #9ca3af;
}
.feedback-time {
color: #94a3b8;
font-size: 12px;
}
.feedback-content-item {
border: 1px dashed rgba(79, 209, 197, 0.5);
border-radius: 6px;
padding: 10px 12px;
margin-bottom: 10px;
background: rgba(20, 33, 61, 0.5);
}
.feedback-content-item:last-child {
margin-bottom: 0;
}
.item-label {
color: #94a3b8;
font-size: 14px;
margin-right: 8px;
font-weight: 600;
}
.masked-url {
color: #38bdf8;
font-size: 14px;
word-break: break-all;
}
.feedback-reason {
font-size: 14px;
line-height: 1.5;
white-space: pre-line;
color: #e2e8f0;
}
/* 图片预览样式(仅展示,无URL) */
.feedback-img {
position: relative;
}
.img-preview {
max-width: 200px;
max-height: 180px;
border-radius: 6px;
border: 1px solid rgba(79, 209, 197, 0.5);
pointer-events: none; /* 彻底禁止点击 */
}
.img-tip {
font-size: 12px;
color: #94a3b8;
margin-top: 5px;
}
.no-data {
text-align: center;
padding: 40px;
color: #94a3b8;
font-size: 16px;
}
/* 提示框样式 */
.alert {
padding: 15px;
border-radius: 6px;
margin-bottom: 20px;
display: none;
}
.alert-success {
background: rgba(34, 197, 94, 0.2);
color: #22c55e;
border: 1px solid rgba(34, 197, 94, 0.3);
}
.alert-error {
background: rgba(239, 68, 68, 0.2);
color: #ef4444;
border: 1px solid rgba(239, 68, 68, 0.3);
}
@media (max-width: 768px) {
.btn-group {
flex-direction: column;
}
.btn {
width: 100%;
}
.feedback-header {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.img-preview {
max-width: 100%;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>朽秋秋雨链接反馈</h1>
</div>
<div class="btn-group">
<button class="btn btn-submit" onclick="showTab('submit')">提交反馈</button>
<button class="btn btn-board" onclick="showTab('board')">处理公示板</button>
</div>

<!-- 提交反馈表单 -->
<div class="content active" id="submit-content">
<div class="alert" id="submit-alert"></div>
<form id="feedback-form">
<div class="form-group">
<label for="name">姓名 *</label>
<input type="text" class="form-control" id="name" name="name" required placeholder="请输入您的姓名">
</div>
<div class="form-group">
<label for="email">联系邮箱 *</label>
<input type="email" class="form-control" id="email" name="email" required placeholder="请输入您的邮箱,方便回复">
</div>
<div class="form-group">
<label for="link">反馈链接 *</label>
<input type="url" class="form-control" id="link" name="link" required placeholder="请输入反馈相关的链接(如网页、商品链接等)">
</div>
<div class="form-group">
<label for="reason">反馈原因 *</label>
<textarea class="form-control" id="reason" name="reason" required placeholder="请详细描述您的反馈原因,换行请按Enter"></textarea>
</div>
<div class="form-group">
<label for="img_url">截图URL(选填)</label>
<input type="url" class="form-control" id="img_url" name="img_url" placeholder="请输入截图的在线URL(如阿里云OSS、腾讯云COS链接)">
</div>
<button type="submit" class="submit-btn">提交反馈</button>
</form>
</div>

<!-- 公示板内容(彻底屏蔽所有完整URL) -->
<div class="content" id="board-content">
<div class="board-content" id="feedback-list">
加载中...
</div>
</div>
</div>
<br>
<div style="text-align: center; width: 100%;">
获取本页面源码:返回博客搜索【链接反馈】
</div>

<script>
// URL脱敏函数(仅保留协议+屏蔽域名,无任何完整URL展示)
function maskUrl(url) {
if (!url) return '无';
try {
const parsed = new URL(url);
const host = parsed.host;
const hostParts = host.split('.');
let maskedHost = host;

if (hostParts.length >= 2) {
const mainHost = hostParts[hostParts.length - 2];
const suffix = hostParts[hostParts.length - 1];
const prefix = hostParts.slice(0, hostParts.length - 2).join('.');

// 强化屏蔽:仅保留前2位,其余全屏蔽(更彻底)
const maskedMain = mainHost.length > 2
? mainHost.substring(0, 2) + '*'.repeat(mainHost.length - 2)
: '*'.repeat(3);

maskedHost = prefix ? `${prefix.substring(0, 2)}*.${maskedMain}.${suffix}` : `${maskedMain}.${suffix}`;
} else {
maskedHost = '*'.repeat(6); // 非标准域名直接显示6个*
}

// 仅返回屏蔽后的域名,不包含路径/参数
return `${parsed.protocol}//${maskedHost}`;
} catch (e) {
return '已屏蔽链接';
}
}

// 切换标签页
function showTab(tab) {
document.querySelectorAll('.content').forEach(el => el.classList.remove('active'));
if (tab === 'submit') {
document.getElementById('submit-content').classList.add('active');
} else if (tab === 'board') {
document.getElementById('board-content').classList.add('active');
loadBoardData();
}
}

// 加载公示板数据(核心:仅传递脱敏后URL,不处理/存储完整URL)
function loadBoardData() {
const feedbackList = document.getElementById('feedback-list');
feedbackList.innerHTML = '加载中...';

fetch('save_feedback.php?action=get_board')
.then(res => {
if (!res.ok) throw new Error('服务器响应异常');
return res.json();
})
.then(result => {
if (result.code === 200) {
renderBoard(result.data);
} else {
feedbackList.innerHTML = `<div class="no-data">数据加载失败:${result.msg}</div>`;
}
})
.catch(err => {
console.error('加载失败:', err);
feedbackList.innerHTML = '<div class="no-data">数据加载失败,请稍后重试</div>';
});
}

// 渲染公示板数据(彻底移除所有完整URL,仅展示脱敏结果)
function renderBoard(data) {
const feedbackList = document.getElementById('feedback-list');

if (data.length === 0) {
feedbackList.innerHTML = '<div class="no-data">暂无反馈记录</div>';
return;
}

let html = '';
data.forEach((item, index) => {
const statusText = item.status === 'processing' ? '正在处理' : (item.status === 'handled' ? '已处理' : '无需处理');
const statusClass = item.status === 'processing' ? 'status-processing' : (item.status === 'handled' ? 'status-handled' : 'status-unneeded');
// 仅使用脱敏后的URL,不引用任何完整URL
const maskedLink = maskUrl(item.link);
const maskedImgUrl = maskUrl(item.img_url);

// 图片仅展示,不显示任何URL(包括脱敏后的),仅提示“已屏蔽”
const imgHtml = item.img_url
? `
<div class="feedback-content-item feedback-img">
<span class="item-label">截图预览:</span><br>
<img src="${item.img_url}" alt="反馈截图" class="img-preview">
<div class="img-tip">截图URL已屏蔽</div>
</div>
`
: '';

html += `
<div class="feedback-item" data-id="${item.id}">
<div class="feedback-header">
<span class="feedback-name">反馈人:${item.name}</span>
<span class="feedback-status ${statusClass}">${statusText}</span>
<span class="feedback-time">提交时间:${item.create_time}</span>
</div>
<!-- 仅展示脱敏后的屏蔽域名,无任何完整URL -->
<div class="feedback-content-item feedback-link">
<span class="item-label">反馈链接:</span>
<span class="masked-url">${maskedLink}</span>
</div>
<!-- 反馈原因 -->
<div class="feedback-content-item feedback-reason">
<span class="item-label">反馈原因:</span>
${item.reason.replace(/\n/g, '<br>&nbsp;&nbsp;&nbsp;&nbsp;')}
</div>
<!-- 截图预览(无URL展示) -->
${imgHtml}
</div>
`;
});

feedbackList.innerHTML = html;
}

// 提交反馈表单
document.getElementById('feedback-form').addEventListener('submit', function(e) {
e.preventDefault();
const alertBox = document.getElementById('submit-alert');
alertBox.style.display = 'none';

const formData = new FormData(this);
fetch('save_feedback.php', {
method: 'POST',
body: formData
})
.then(res => res.json())
.then(data => {
alertBox.className = data.code === 200 ? 'alert alert-success' : 'alert alert-error';
alertBox.textContent = data.msg;
alertBox.style.display = 'block';
if (data.code === 200) this.reset();
})
.catch(err => {
alertBox.className = 'alert alert-error';
alertBox.textContent = '提交失败,请稍后重试';
alertBox.style.display = 'block';
});
});

// 页面加载默认显示提交反馈
window.onload = () => showTab('submit');
</script>
</body>
</html>