GithubHelp home page GithubHelp logo

soxft / urlshorting Goto Github PK

View Code? Open in Web Editor NEW
255.0 5.0 89.0 741 KB

A simple but powerful URL shortener

License: Apache License 2.0

PHP 100.00%
url urlshorting shorting short domain php url-shortener message

urlshorting's Introduction

需要注意

该项目暂时不再维护,我们将完全重构该项目,为了保证历史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进行维护

urlshorting's People

Contributors

essesoul avatar soxft avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

urlshorting's Issues

一个建议

能否设置允许更改短链长度
不然都是一个长度,选择性较少

新功能提议:允许用户自定义短链后缀

可以加入允许用户自定义的功能
并且core部分不需要对shorturl和passmessage的短链生成分为两部分,导致代码冗长

我已经在自己的fork中测试,如果作者同意,希望可以给我开个pr

功能建议:失效时间等

1、建议添加一个失效时间的功能,例如:t.tl 这里的设计很方便,my5353.com 这里的更加专业。
2、访问量是一个比较重要的功能,也建议添加。
3、另外,管理界面里面有些乱,建议可手动勾选需要展示的项。像IP、短域状态、 IP状态等这些用处不大可不要罗列(数据表项可保存),密语内容可以用折叠框显示。

tips

xd,你的站有sqli

Error at first connection

Hello, I have an error after the install on the login.php page :
Notice: Undefined index: password in /mysite.com/short/admin/login.php on line 17

And try direct at index.php and other error
Notice: Undefined index: id in /mysite.com/short/header.php on line 15

Help me please !

建议在管理后台可以加入链接编辑

非常感谢大神写的这套短域名,简单方便
有个小建议就是希望可以在后台进行对已生成的短链进行编辑,可以自主的修改跳转就完美了
还有就是在API中能否加入一个用户toekn 防止没有授权的用户生成

作者你好,提几条建议。

UrlShorting是我碰到的目前最好用的短网址程序,有几条建议如下:
1.希望后台增加网址编辑的功能
比如说要修改一下原链接,修改一下访问密码。
2.希望后台增加批量删除网址和搜索网址的功能
一个个删除太麻烦了,搜索功能很有必要。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.