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

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

小野博客

QQ音乐播放接口:PHP逆向分析与实现 CTF:最好的语言解密过程 狐蒂云疑似准备跑路:低价云服务器的水有多深 WeMod PRO 会员高级版脚本分享 PowerShell 执行策略被禁止解决方法 当 PCDN 来敲门:一个"小"博客的 200G 流量惊魂记 船新升级!我的“一言”系统支持一键换肤了(内附10套精美皮肤) 再续前缘:利用自建一言Api接口嫁接给typecho 给网页装个“灵魂”:我写了一个超丝滑的【一言】自建语录api 桌面工具-极光便签-随时笔记
一款可以屏蔽国外广告的IP过滤评论插件
小野 · 2026-03-01 · via 小野博客

💡升级了PHP8.2,原插件失效了。所以搭配AI写了这款插件。测试正常,或许会有bug,现在ai很方便的。问问就可以解决!

功能

  1. 国外IP拦截

    • 自动识别并拦截非中国大陆IP
    • 支持本地IP和内网IP白名单
    • IP段匹配 + 在线API双重验证
  2. 关键词过滤

    • 自定义敏感关键词列表
    • 不区分大小写匹配
    • 默认包含常见垃圾词
  3. 链接数量限制

    • 限制评论中的链接数量
    • 防止垃圾广告评论
  4. 评论频率限制

    • 限制同一IP的评论间隔时间
    • 防止恶意刷评论
  5. IP黑白名单

    • 白名单IP不受任何限制
    • 黑名单IP直接拒绝评论

IPv6 支持

新增功能

  • 自动检测IP类型 - 自动识别IPv4和IPv6
  • 中国IPv6段匹配 - 覆盖三大运营商和教育网
  • CIDR范围匹配 - 使用位运算精确匹配

支持的运营商

  • 中国电信 - 240e::/20, 2400:8900::/32, 2400:8500::/32
  • 中国移动 - 2409:8000::/20, 2408:8400::/22, 2400:a480::/32
  • 中国联通 - 2408:8000::/20, 2400:dd00::/32
  • 教育网 - 2001:250::/35, 2001:da8::/32

工作流程

[steps]
[step title="第一步"]用户评论[/step]
[step title="第二步"]获取IP地址[/step]
[step title="第三步"]检测IP类型[/step]
[step title="第四步"]IPv4 → IP段列表匹配 or IPv6 → CIDR范围匹配[/step]
[step title="第五步"]匹配成功 → 通过 or 匹配失败 → 调用API验证 [/step]
[/steps]

下载

[download name="AntiSpam.rar" url="https://c8888.lanzouu.com/ik5eR3jh5ype" password="" platform="lanzou"]文件描述[/download]