Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.1 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.1 KB

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