Skip to content

About

🔗 PHP短链接服务 | 安全检测 + 管理后台 + 验证码防刷

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

🔗 PHP URL Shortener

一个功能完整的PHP短链接服务,支持安全检测、验证码、管理后台、批量操作。

✨ 特性

  • 🚀 一键生成短链接,支持自定义短码
  • 🛡️ 智能安全检测(敏感词 + 页面内容深度扫描)
  • 📊 管理后台:状态管理、批量删除、封禁/恢复
  • 🔐 数学验证码 + IP频率限制,防止滥用
  • 🎨 毛玻璃UI + 背景轮播

📦 安装

  1. 克隆仓库
  2. 修改 config.php 中的域名、管理员密码
  3. 确保 PHP 7.4+,开启 curl、json 扩展
  4. 配置 Nginx/Apache 指向项目目录

⚙️ 配置说明

参数 说明
ADMIN_USERNAME/PASSWORD 后台登录
SITE_URL 你的域名
SENSITIVE_WORDS 敏感词库
FORBIDDEN_LOOP 禁止循环引用

伪静态:

location ~* \.json$ {
    deny all;
    return 403;
}

location = /data.json {
    deny all;
    return 403;
}

location ~ ^/([a-zA-Z0-9]+)$ {
    try_files $uri $uri/ /go.php?code=$1&$args;
}

location / {
    try_files $uri $uri/ /index.php?$args;
}

🔧 API 使用

生成短链:POST / with url、custom_code(可选)、captcha

📸 截图

[待补充]

📄 开源协议

MIT

About

🔗 PHP短链接服务 | 安全检测 + 管理后台 + 验证码防刷

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages