Skip to content

helloandre/shortnsweet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shortnsweet v2.1

About

shortnsweet is a simple script setup to allow you to host your very own url shortening and image uploading service. It used to be called URL Shortener (i know, how original).

shortnsweet takes gaurds against being used by spammers. See the Spam Protection section below for more information.

You need 3 things to be able to use this script:

  • Apache with mod_rewrite enabled or similar server/rewriting setup.
  • php
  • mysql

Installation

  • visit <path_to_install>/install/
  • confirm all data is correct, if not, edit config.php
  • install

Spam Protection

To gaurd agains mailcious sites being linked to with shortnsweet, integration with Goole Safe Browsing API has been included. In config.php there is a variable $gsb_key. To set it, visit this page to generate a key and use that as the value for $gsb_key.

shortnsweet also checks any links sent for a response code. Any links that return a non-200 (notice, not 2xx) code will be rejected.

Analytics

  • If you want to include any kind of google analytics, or your own statistics that require loading javascript, see the comments in index.php for instructions
  • There is no tracking built in to shortnsweet.

About

url shortener, file host

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published