• Stars
    star
    257
  • Rank 158,322 (Top 4 %)
  • Language
    PHP
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple but powerful URL shortener

License GitHub stars GitHub forks GitHub last commit

需要注意

该项目暂时不再维护,我们将完全重构该项目,为了保证历史commit 以及 保证新项目的commit清晰, 我们准备在 https://github.com/soxft/UrlShorter 完成新的项目
如果您有任何新的建议, 可以在 /soxft/UrlShorter 提出issue 感谢支持

国内镜像地址

Gitee

Github发布地址

soxft essesoul

简介

一个url网址缩短平台.

demo:K6o短链接

安装方法

1.下载源码.
2.上传至你的网站根目录.
3.访问网站域名填写mysql等信息进行安装
4.修改网站伪静态配置:

Nginx:

    if (!-e $request_filename) {
    rewrite ^/(.*)$ /index.php?id=$1 last;
    }

Apache:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php?id=$1 [L]
    </IfModule>

IIS (仅供参考,未进行测试):

  <rule name="tool.apizl.com rewriteTools1" patternSyntax="ECMAScript" stopProcessing="true">
    <match url="^/(.*)" ignoreCase="false" />
    <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
    <action type="Rewrite" url="/index.php?id={R:1}" appendQueryString="false" />
  </rule>


5.访问网站进行确认.

版权

xcsoft版权所有 该源码依据apache2开源协议开源,请不要修改版权信息!

Secondary Developed By k6o.top

Contact us: [email protected]

更新

v2.2.3更新
此次更新由k6o短链接提供

email: [email protected]

1.更新了版本号获取方式,直接拉取GitHub的releases

2.修改了footer.php中的显示bug

3.版本号不再写入数据库和config.php,直接写在php变量中

4.更新footer和友链

5.优化了一下代码的缩进

PS:下次更新计划加上登陆页面验证码和统计代码

其他提示

由于某些原因,该源码仍然使用Mysqli连接数据库,可能缺乏一定的安全性,使用时请注意使用WAF等平台进行保护。 该项目目前由essesoul进行维护

More Repositories

1

busuanzi

A simple website statistics analyzer
Go
160
star
2

UrlShorter

A simple but powerful URL shortener
PHP
107
star
3

TimeMail

Write a letter to the future,After many years, I hope you will live up to your expectations.
PHP
57
star
4

poor

A demo of pay face-to-face with Alipay
PHP
46
star
5

CommentToMail

A typecho comment push plugin
PHP
30
star
6

lovewall

A simple confession wall
PHP
25
star
7

time-counter

a simple online user/time counter
Go
13
star
8

signin

A class sign-in system
PHP
11
star
9

serverStatus

a simple serverStatus mointor
Go
10
star
10

waline-async-mail

Waline 评论异步发信
Go
8
star
11

openid-go

backend of 9420.ltd
Go
6
star
12

home_page

my personal page
JavaScript
3
star
13

lyric-go

Easily download lyric from netease music
Go
3
star
14

home_page_nextjs

personal home_page based on next.js
TypeScript
3
star
15

CommentToTelegram

Send your blog's comment through telegram
PHP
2
star
16

UrlSpam

A typecho plugin which can prevent you from receive spam comments
PHP
2
star
17

db-backuper

An easy way to backup your mysql
Go
2
star
18

Autoshield

auto enable cloudflare under_attack
Python
2
star
19

xchat

A simple chat room based on Ajax long polling
HTML
2
star
20

Urlshorter-Workers

A simple urlshorter based on Cloudflare worekrs
JavaScript
2
star
21

rate-limit

General purpose rate limiter implementation.
PHP
1
star
22

go-license

A simple go-license c/s
Go
1
star
23

soxft

Placeholder for GitHub's profile..
1
star
24

bugbug

A spoof bug website, try how many times you need to fix all bugs
HTML
1
star
25

openID-sdk-php

sdk of xopenId
PHP
1
star
26

netease

A netease-cli based on php
PHP
1
star