Coder Social home page Coder Social logo

url-shorter's Introduction

English Version:

URL-Shorter

A modern, safe and simple PHP url shorter.

Demo:

http://bbr.buzz/

Function:

  • Use PDO and it's Bindparam to prevent SQL Inject.
  • Use Ajax to get the short Code
  • Use pure JS to copy the short link
  • No more magnificent functions

Installation

  1. Git clone or Download the code and unzip
  2. Add the website in your web server config (Require Apache or Nginx rewrite rules(Similar as Wordpress rewrite rules))
  3. Import the url.sql to your db
  4. Configure the config.php
  5. Finished

Future:

  • Redis cache
  • Redis control the rate

中文简介:

短链接

一个现代、安全且简洁的PHP短链接 (PHP是世界上最好F#fIO#@($)#U)

Demo:

http://bbr.buzz/

功能:

  • 使用PDO和Bindparam防注入
  • 使用Ajax获取短链接(免刷新)
  • 使用纯JS复制生成的短链接
  • 没有更多功能了

安装方法:

  1. git clone或者下载代码到网站根目录
  2. 配置好伪静态(Apache直接使用根目录下的.htaccess就可以了,Nginx请自行配置(类似Wordpress的规则))
  3. 导入url.sql到数据库
  4. 配置好配置文件
  5. 完成

计划中要增加的功能 (计划中,计划中)

  • 使用Redis缓存,更快,抗压能力更强
  • 使用Redis控制访问速率,抗CC

url-shorter's People

Contributors

littleplus avatar

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.