Skip to content

inbi/SMURLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMURLS

SMURLS is a "Self-Made URL Shortener" which i wrote a few years ago for personal use.

Features:

  • Uses a plain-text CSV file for storing the URLs
  • Can't be abused by spammers or totally unknown people
  • No dependencies
  • light-weight script

Notes:

The entries in the CSV can't be updated via browser. You need to edit it locally (with your favorite text editor) and upload it via FTP or SCP to your server. Or you can edit the CSV directly on the server via SSH (nano, vi etc.).

The last two fields ("date" and "description") in the CSV are not required for the script to work properly.

Putting the CSV in a seperate subdirectory allows you to restrict access to it (via .htaccess authentication)

Components:

  • shorty.php (the main script)
  • shurl.csv (the "database")
  • .htaccess (calls scripts via regex/rewrite)

Live Demo:

Working Shortcut: https://tlr.de/6

Broken Shortcut (ErrorMsg): https://tlr.de/989

About

SMURLS is a Self-Made URL Shortener

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages